public RepositoryVersionEntity create(StackEntity stackEntity,
                                        String version, String displayName,
                                        List<RepoOsEntity> repoOsEntities) throws AmbariException {
    return create(stackEntity, version, displayName, repoOsEntities,
          RepositoryType.STANDARD);
  }
Validates and creates an object.
The version must be unique within this stack name (e.g., HDP, HDPWIN, BIGTOP).
@param stackEntity Stack entity.
@param version Stack version, e.g., 2.2 or 2.2.0.1-885
@param displayName Unique display name
@param repoOsEntities structure of repository URLs for each OS
@return Returns the object created if successful, and throws an exception otherwise.
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/RepositoryVersionDAO.java