@Override
        public String apply(RepositoryVersionEntity input) {
          return input.getVersion();
        }
In the case of a patch, check if there is a parent repo.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/VersionDefinitionResourceProvider.java