}
private static void createSuperUser() throws Exception {
UserDatabase userDatabase = getUserService().createUserDatabase(DATABASE_TYPE, UserDatabaseManager.DEFAULT_REALM_NAME, UserDatabaseManager.DEFAULT_REALM_DESCRIPTION, true);
User user = userDatabase.createAccount(USERNAME, "", "", "", new Role[] {});
userDatabase.changePassword(user.getPrincipalName(), "", PASSWORD, false);
Property.setProperty(new RealmKey("security.userDatabase", userDatabase.getRealm()), DATABASE_TYPE, getSessionInfo());
Property.setProperty(new RealmKey("security.administrators", userDatabase.getRealm()), USERNAME, getSessionInfo());
}