code: public static Entry javaObject(String classname, String constructorArgument, Dn baseDn) {
          Dn dn = LdapUtils.concatDn(SchemaConstants.JAVA_CLASS_NAME_ATTRIBUTE, classname, baseDn);
          Entry entry = new DefaultEntry(dn);
          try {
              entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, SchemaConstants.JAVA_CLASS_INSTANCE_OC);
              entry.add(SchemaConstants.JAVA_CLASS_NAME_ATTRIBUTE, classname);
              addDescription(entry, constructorArgument);
          } catch (LdapException e) {
              throw new LdapRuntimeException(e);
          }
          return entry;
      }
docs: Returns an {@link Entry} whose Dn is baseDn followed by classname as Rdn. The attribute type of the Rdn is
  javaClassName. The constructorArgument is treated as an optional description as explained in
  {@link #namedDescriptiveObject(String, String, Dn)}.