Preferences prefs = new Preferences();
prefs.setUserID(savedUser.getId());
prefs.setColors(ColorScheme.valueOf("BLACK_ON_WHITE").toString());
prefs.setSort(SortingMethod.valueOf("ALPHA_ASCENDING").toString());
preferenceService.save(prefs);
String relativeWebPath = "WEB-INF/notesRepo";
String absoluteDiskPath = getServletContext().getRealPath(relativeWebPath);
File directory = new File(absoluteDiskPath + "/" + newUser.getId());
boolean success = directory.mkdirs();