{
JetspeedPrincipalType type = this.principalManagerProvider.getPrincipalType(typeName);
principalManager = this.principalManagerProvider.getManager(type);
JetspeedPrincipal principal = null;
if (!(principalManager.principalExists(name)))
{
principal = principalManager.newPrincipal(name, jsPrincipal.isMapped());
JSSecurityAttributes jsSecAttrs = jsPrincipal.getSecurityAttributes();
if (jsSecAttrs != null)
{