List<MetadataResult> metadataResults = metadataResolver.resolveMetadata( session, metadataRequests );
WorkspaceReader workspace = session.getWorkspaceReader();
if ( workspace != null )
{
List<String> versions = workspace.findVersions( request.getArtifact() );
for ( String version : versions )
{
versionIndex.put( version, workspace.getRepository() );
}
}