protected SolrDocument getSolrDocument(String uri) throws SolrServerException, IOException {
if(server == null){
return null;
}
final SolrQuery solrQuery = new SolrQuery();
solrQuery.addField("*"); // select all fields
solrQuery.setRows(1); // we query for the id, there is only one result
String queryString = String.format("%s:%s", this.getDocumentIdField(),
SolrUtil.escapeSolrSpecialChars(uri));
solrQuery.setQuery(queryString);
QueryResponse queryResponse;