}
});
} catch (PrivilegedActionException pae) {
Exception e = pae.getException();
if(e instanceof SolrServerException){
throw new YardException("Error while deleting document " + id + " from the Solr server", e);
} else if(e instanceof IOException){
throw new YardException("Unable to access SolrServer",e);
} else {
throw RuntimeException.class.cast(e);
}
}
// NOTE: We do not need to update all Documents that refer this ID, because