code: public Customer createCustomer(Customer customer) {
          if(getCustomer(customer.getEmail()) != null){
              return customerRepository.save(customer);
          }
          return null;
      }
docs: Create new customer
  @param customer new customer to be created
  @return The persistence customer or null if a customer with the same email already exists