code: public boolean isUserInRole(String roleName)
      {
          LoginHandler lh = Handlers.get( getServletContext() ).getLoginHandler();
          return lh.isUserInRole(getHandlerContext(), roleName);
      }
docs: Tell whether the current logged-in user is a member of a given role.  Goes through a custom {@link LoginHandler},
  if one has been configured in beehive-netui-config.xml.
  
  @param roleName the name of the role to test.
  @return <code>true</code> if there is a current logged-in user and the user is a member of the given role.
  @see #getUserPrincipal