code: public LdapUser createLdapUser(final String username) {
          pm.currentTransaction().begin();
          final LdapUser user = new LdapUser();
          user.setUsername(username);
          user.setDN("Syncing...");
          pm.makePersistent(user);
          pm.currentTransaction().commit();
          EventService.getInstance().publish(new LdapSyncEvent(user.getUsername()));
          return getObjectById(LdapUser.class, user.getId());
      }
docs: Creates a new LdapUser object with the specified username.
  @param username The username of the new LdapUser. This must reference an existing username in the directory service
  @return an LdapUser
  @since 1.0.0