if ( exception == null )
{
List<String> contexts = Collections.singletonList( request.getRequestContext() );
LocalMetadataRegistration registration =
new LocalMetadataRegistration( metadata, requestRepository, contexts );
session.getLocalRepositoryManager().add( session, registration );
}
else if ( request.isDeleteLocalCopyIfMissing() && exception instanceof MetadataNotFoundException )
{