throw new IllegalArgumentException("Id cannot be blank or null.");
}
if (logger.isDebugEnabled()) {
logger.debug("Indexing customer " + customer.getId() + " : " + customer.getCode() + " : " + customer.getFirstname() + " : " + customer.getLastname());
}
CustomerSolr customerSolr = new CustomerSolr();
customerSolr.setId(customer.getId());
customerSolr.setLastname(customer.getLastname());
customerSolr.setFirstname(customer.getFirstname());
customerSolr.setEmail(customer.getEmail());
customerSolr.setGender(customer.getGender());
customerSolr.setTitle(customer.getTitle());
customerSolrServer.addBean(customerSolr);
customerSolrServer.commit();
}