code: @Override
      public Node getUser(final String uid) {
          
          try {
              String query = "(&(objectClass=" + userObjectClass + ")(" + userIdentifyer + "=" + uid + "))";
              SearchResult searchResult;
              Attributes attributes;
              SearchControls controls = new SearchControls();
              controls.setReturningAttributes(new String[]{LdapKeys.ASTERISK, LdapKeys.MODIFY_TIMESTAMP, LdapKeys.MODIFIERS_NAME, LdapKeys.ENTRY_UUID});
              controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
              NamingEnumeration<SearchResult> results = ctx.search("", query, controls);
              queryCount++;
              if (results.hasMore()) {
                  searchResult = results.next();
                  attributes = searchResult.getAttributes();
                  LdapUser user = new LdapUser(uid, this);
                  user.setDn(searchResult.getNameInNamespace());
                  user = fillAttributesInUser((LdapUser) user, attributes);
                  return user;
              }
          } catch (NamingException ex) {
              handleNamingException(instanceName + ":" + uid, ex);
          }
          return new LdapUser();
      }
docs: Returns an LDAP-User.
  
  @param uid the uid of the User.
  @see com.innoq.liqid.model.Node#getName
  @return the Node of that User, either filled (if User was found), or empty.