Here you can find the source of userNodeForClass(Class> clazz)
private static Preferences userNodeForClass(Class<?> clazz)
//package com.java2s; //License from project: Apache License import java.util.prefs.Preferences; public class Main { private static Preferences userNodeForClass(Class<?> clazz) { final Preferences prefs = Preferences.userNodeForPackage(clazz); return prefs.node(clazz.getSimpleName()); }/* ww w .j a v a2 s. com*/ private static Preferences userNodeForClass(String className) { final int pkgEndIndex = className.lastIndexOf('.'); String packageName = className.substring(0, pkgEndIndex); String simpleClassName = className.substring(pkgEndIndex + 1); String packagePath = "/" + packageName.replace('.', '/'); final Preferences prefs = Preferences.userRoot().node(packagePath); return prefs.node(simpleClassName); } }