// Register user.
User userProfile = new User("user@udc.es",
PasswordEncrypter.crypt("userPassword"), "name",
"lastName", "user");
userProfileDao.save(userProfile);
Long userId = userProfile.getUserId();
System.out.println("User with userId '" + userId
+ "' has been created");
System.out.println(userProfile);