Here you can find the source of getPreferences(final Class> preferencesClass)
public static Preferences getPreferences(final Class<?> preferencesClass)
//package com.java2s; //License from project: Apache License import java.util.prefs.Preferences; public class Main { public static Preferences getPreferences(final Class<?> preferencesClass) { final String preferenceGroup = preferencesClass.getName(); return getUserPreferences(preferenceGroup); }//from w w w.j a v a 2s . c om public static Preferences getUserPreferences(final String preferenceGroup) { final Preferences userRoot = Preferences.userRoot(); final Preferences preferences = userRoot.node(preferenceGroup); return preferences; } }