public static void validateVersion(String name) throws InvalidNameException {
        if (StringUtils.isEmpty(name)) {
            throw ExceptionFactory.invalidVersionException(Messages.i18n.format("FieldValidator.EmptyVersionError")); //$NON-NLS-1$
        }
    }
Validates an version.
@param name
@throws InvalidNameException
manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/util/FieldValidator.java