if(role != null)
return role;
}
/* No role with given name found, throw exception */
throw new RoleNotFoundException("No role found with given name: "+roleName);
}
catch(NoSuchRoleException ex)
{
throw new RoleNotFoundException("No role found with given name: "+roleName);
}
catch (PortalException e)
{
throw new RoleNotFoundException("Error during role ["+roleName+"]", e);
}
catch (SystemException e)
{
throw new RoleNotFoundException("Error during role ["+roleName+"]", e);
}
}