Here you can find the source of getPrefs(Class> cls)
public static Preferences getPrefs(Class<?> cls)
//package com.java2s; //License from project: Open Source License import java.util.prefs.Preferences; public class Main { public static Preferences getPrefs(Class<?> cls) { return Preferences.userNodeForPackage(cls); }/*from w w w .java 2 s .c o m*/ }