loginDomainPrincipal.setClazz("security-role-logindomainprincipal-class");
description = securityFactory.createDescription();
description.setValue("security-role-logindomainprincipal-description");
loginDomainPrincipal.getDescription().add(description);
role.getLoginDomainPrincipal().add(loginDomainPrincipal);
Principal principal = securityFactory.createPrincipal();
principal.setName("security-role-principal-name");
principal.setClazz("security-role-principal-class");
description = securityFactory.createDescription();
description.setValue("security-role-principal-description");
principal.getDescription().add(description);
role.getPrincipal().add(principal);
RealmPrincipal realmPrincipal = securityFactory.createRealmPrincipal();
realmPrincipal.setName("security-role-realmprincipal-name");
realmPrincipal.setClazz("security-role-realmprincipal-class");
description = securityFactory.createDescription();