public Customer getCustomerByEmailAndPassword(String email, String password) {
String hash = DigestUtils.sha256Hex(password);
JacksonDBCollection<Customer, String> customers = JacksonDBCollection.wrap(customerCollection, Customer.class, String.class);
Customer findOne = customers.findOne(new BasicDBObject("email", email).append("password", hash));
if(findOne == null) {
throw new CustomerNotFoundException(email);
}
return findOne;
}