// first save the user
// this is the UserManager that owns the user
UserManager userManager = userManagerFacade.getUserManager(user.getSource());
if (!userManager.supportsWrite()) {
throw new InvalidConfigurationException("UserManager: " + userManager.getSource()
+ " does not support writing.");
}
userManager.addUser(user, password);