code: public static Entry namedObject(String name, Dn baseDn) {
          Dn dn = LdapUtils.concatDn(SchemaConstants.CN_ATTRIBUTE, name, baseDn);
          Entry entry = new DefaultEntry(dn);
          try {
              entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, SchemaConstants.NAMED_OBJECT_OC);
              entry.add(SchemaConstants.CN_ATTRIBUTE, name);
          } catch (LdapException e) {
              throw new LdapRuntimeException(e);
          }
          return entry;
      }
docs: Returns an {@link Entry} whose {@link Dn} is baseDn followed by name as Rdn. The attribute type of the Rdn is
  'common name'.