//if we created a personal group, then add the new account as a manager of their personal group
if(getSignature().getArgumentCount() == 3 || getSignature().getArgumentCount() == 5) {
final Group group = securityManager.getGroup(username);
group.addManager(securityManager.getAccount(username));
securityManager.updateGroup(group);
}
} else {
throw new XPathException("Unknown function call: " + getSignature());
}
}