Update GetPrefs.java

Added Apache boilerplate