r = new RegistrationError();
((RegistrationError)r).setCause(new RegistrationException("your email seems to be invalid"));
} else {
User registeredUser = ServiceFactory.getRegistrationService().registerTrialUser(u, hostId);
ServiceFactory.getRegistrationService().sendEmailVerification(registeredUser);
r = new RegistrationSuccessfull();
}
} catch (RegistrationException e) {
r = new RegistrationError();
((RegistrationError)r).setCause(e);
} catch (Exception e) {