AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
public Object run() throws IOException, SolrServerException {
if(config.isMultiYardIndexLayout()){
//make sure we only delete the Entity only if it is managed by
//this Yard. Entities of other Yards MUST NOT be deleted!
server.deleteByQuery(String.format("%s:%s AND %s:%s",
fieldMapper.getDocumentDomainField(),
SolrUtil.escapeSolrSpecialChars(getId()),
fieldMapper.getDocumentIdField(),
SolrUtil.escapeSolrSpecialChars(id)));
} else {