code: public static LdapName newLdapName(String distinguishedName) {
          Assert.notNull(distinguishedName, "distinguishedName must not be null");
  
          try {
              return new LdapName(distinguishedName);
          } catch (InvalidNameException e) {
              throw convertLdapException(e);
          }
      }
docs: Construct a new LdapName instance from the supplied distinguished name string.
  
  @param distinguishedName the string to parse for constructing an LdapName instance.
  @return a new LdapName instance.
  @throws org.springframework.ldap.InvalidNameException to wrap any InvalidNameExceptions thrown by LdapName.
  @since 2.0