code: public void add(Entry entry) throws LdapException {
          CoreSession session = this.service.getAdminSession();
          session.add(entry);
  
      }
docs: Convenience method to add an entry using the admin session.
  
  @param entry The entry to add.
  @throws LdapException If there was an error adding the entry.