code: public static String formatUniqueName(String uniqueName) throws InvalidUniqueNameException {
          String validName = getValidUniqueName(uniqueName);
          if (validName == null) {
              if (tc.isErrorEnabled()) {
                  Tr.error(tc, WIMMessageKey.INVALID_UNIQUE_NAME_SYNTAX, WIMMessageHelper.generateMsgParms(uniqueName));
              }
              throw new InvalidUniqueNameException(WIMMessageKey.INVALID_UNIQUE_NAME_SYNTAX, Tr.formatMessage(
                                                                                                              tc,
                                                                                                              WIMMessageKey.INVALID_UNIQUE_NAME_SYNTAX,
                                                                                                              WIMMessageHelper.generateMsgParms(uniqueName)));
          } else {
              return validName;
          }
      }
docs: Formats the specified entity unique name and also check it using the LDAP DN syntax rule.
  The formatting including remove
  
  @param The unique name of the entity to be formatted.
  
  @return The formatted entity unique name.
  
  @exception InvalidUniqueNameException if the specified member DN does not pass the syntax check.