*
* @param roleName the name of the role
* @return true if it is determined the user has the given role.
*/
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();