*/
public boolean isUserInRole(String roleName) {
PortletEntity entity = internalPortletWindow.getPortletEntity();
PortletDD def = entity.getPortletDefinition();
SecurityRoleRefDD ref = null;
Iterator refs = def.getSecurityRoleRefs().iterator();
while (refs.hasNext()) {
SecurityRoleRefDD r = (SecurityRoleRefDD) refs.next();
if (r.getRoleName().equals(roleName)) {
ref = r;
break;
}
}