tempMap.clear();
solrLayerConfiguration = new SolrLayerConfiguration(new ArrayList<SolrAttribute>());
solrLayerConfiguration.setLayerName(ri.getName());
ri.getMetadata().put(SolrLayerConfiguration.KEY, solrLayerConfiguration);
}
SolrDataStore dataStore = (SolrDataStore) ((DataStoreInfo) ri.getStore())
.getDataStore(new NullProgressListener());
ArrayList<SolrAttribute> attributes = dataStore
.getSolrAttributes(solrLayerConfiguration.getLayerName());
for (SolrAttribute at : attributes) {
if (tempMap.containsKey(at.getName())) {
SolrAttribute prev = tempMap.get(at.getName());
prev.setEmpty(at.getEmpty());