@Override
  public Customer register(Customer customer, String rawPassword) {

    String password = passwordEncoder.encode(rawPassword);

    customer.setCustomerPass(password);
    customerRepository.insert(customer);
    return customer;
  }
 @Override
 public Customer findOne(String customerCode) {
   return customerRepository.findOne(customerCode);
 }