/* The customerId is empty, which means we must create the Customer */
if (customerId.isEmpty())
{
final Person customer = (Person) request.getSession().getAttribute("customer");
PasswordGenerator generator = Generator.newPasswordGenerator(8, true, true, true, true);
try {
final String password = generator.generate();
HashFunction hf = Hashing.sha1();
HashCode hc = hf.newHasher()
.putString(password)
.hash();
customer.setPassword(hc.toString());