throws BusinessLogicException {
final User user = userFactory.createNewUser();
user.setDisplayName(userData.getDisplayName());
user.setEmail(userData.getEmail());
user.setLocation(userData.getLocation());
LocalCredential localCredential = new LocalCredential();
localCredential.setName(((RegistrationData)userData).getName());
localCredential.setPassword(userData.getPassword());
User savedUser = userWriter.createUser(user);
credentialWriter.addCredential(savedUser, localCredential);
}