private boolean apiVersionHasApiDefinition(ApiVersionBean apiVersion) throws StorageException {
        // additional check if the document really exists in the storage
        return apiVersion.getDefinitionType() != null
            && apiVersion.getDefinitionType() != ApiDefinitionType.None
            && storage.getApiDefinition(apiVersion) != null;
    }
Checks if the api version has an api definition

@param apiVersion the apiVersion
@return true if the version has a definition, else false
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/ApiService.java