code: public static boolean isValidVersion(final String version) {
          return StringUtils.isNotBlank(version)
                  && (ALTERNATE_PATTERN.matcher(version).matches() || STANDARD_PATTERN
                          .matcher(version).matches());
      }
docs: Validates version.
  
  @param version
  Version to validate.
  @return <code>true</code> when version is valid, <code>false</code>
  otherwise.