@Override
public void createUser(String username) throws UserExistsException {
UserData newUser = new UserData();
newUser.setUsername(username);
UserPermissionSetData permissionSetData = new UserPermissionSetData(username);
newUser.setPermissionSet(permissionSetData);
synchronized (entityManager) {
entityManager.persist(newUser);
}
}