throw new IllegalArgumentException("Id cannot be blank or null.");
}
if (logger.isDebugEnabled()) {
logger.debug("Indexing store " + store.getId() + " : " + store.getName() + " : " + store.getCity());
}
StoreSolr storeSolr = new StoreSolr();
storeSolr.setId(store.getId());
storeSolr.setCode(store.getCode());
storeSolr.setName(store.getName());
storeSolr.setCity(store.getCity());
storeSolr.setCountryCode(store.getCountryCode());
storeSolr.setPostalCode(store.getPostalCode());
storeSolr.setType(store.getType());
storeSolrServer.addBean(storeSolr);
storeSolrServer.commit();
}