code: public static List<Entry> userStructure(User user) {
          List<Entry> entryList = new LinkedList<>();
          entryList.add(namedObject(user.getUsername(), DnFactory.users()));
          entryList.addAll(createCredentialsEntries(user));
          entryList.addAll(createUserAttributesEntries(user));
          return entryList;
      }
docs: Returns a list of entries representing the {@link User} along with its credentials and attributes. The list
  should not be reordered since its order follows the tree structure of the DIT. It can be inserted into the DIT
  right away.