VersionDefinitionXml xml = s_metaInfo.get().getVersionDefinition(id);
if (null == xml) {
throw new NoSuchResourceException(String.format("Could not find version %s",
id));
}
<BUG>results.add(toResource(id, xml, requestPropertyIds));
</BUG>
}
} else {
List<RepositoryVersionEntity> versions = s_repoVersionDAO.findAllDefinitions();

VersionDefinitionXml xml = s_metaInfo.get().getVersionDefinition(id);
if (null == xml) {
throw new NoSuchResourceException(String.format("Could not find version %s",
id));
}
results.add(toResource(id, xml, requestPropertyIds, true));
}
} else {
List<RepositoryVersionEntity> versions = s_repoVersionDAO.findAllDefinitions();
