private static Preferences nodeForPackage(Object o, Preferences root) {
private static Preferences nodeForPackage(Class c, Preferences root) {
    private static Preferences nodeForPackage(Object o, Preferences root) {        // Get the package path        String className = o.getClass().getName();        String packagePath;        int index = className.lastIndexOf('.');        if(index == -1) {            packagePath = "<unnamed>";        } else {            packagePath = className.substring(0,index).replace('.','/');        }        return root.node(packagePath);    }