code: @SuppressWarnings("unchecked")
      public List<LdapUser> getLdapUsers() {
          final Query query = pm.newQuery(LdapUser.class);
          query.setOrdering("username asc");
          return (List<LdapUser>) query.execute();
      }
docs: Returns a complete list of all LdapUser objects, in ascending order by username.
  @return a list of LdapUsers
  @since 1.0.0