code: public static void validateServiceName(String name) throws ServiceException {
          if (!validateRequiredField(name, nameRegEx)) {
              throw new ServiceException(
                      ErrorCode.SERVICE_INSTANCE_NAME_FORMAT_ERROR);
          }
      }
docs: Validate the instance service name.
  
  @param name
  the service name String.
  @throws ServiceException