if (jsRules != null)
{
Iterator _itRoles = jsRules.iterator();
while (_itRoles.hasNext())
{
JSPrincipalRule pr = (JSPrincipalRule) _itRoles.next();
ProfilingRule pRule = pm.getRule(pr.getRule());
try
{
PrincipalRule p1 = pm.createPrincipalRule();
p1.setLocatorName(pr.getLocator());
p1.setProfilingRule(pRule);
p1.setPrincipalName(principal.getName());
pm.storePrincipalRule(p1);
}
catch (Exception eRole)