public String getSchemaName(String collectionName) {
return execute(new SolrCallback<String>() {
@Override
public String doInSolr(SolrServer solrServer) throws SolrServerException, IOException {
SolrJsonResponse response = SolrSchemaRequest.name().process(solrServer);
if (response != null) {
return response.getNode("name").asText();
}
return null;
}
});
}