code: public static void validateName(String name) throws InvalidNameException {
          if (StringUtils.isEmpty(name)) {
              throw ExceptionFactory.invalidNameException(Messages.i18n.format("FieldValidator.EmptyNameError")); //$NON-NLS-1$
          }
      }
docs: Validates an entity name.
  @param name
  @throws InvalidNameException