* @param role the named role to test.
* @return true if the user plays the role.
*/
public boolean isUserInRole(String role)
{
ServletInvocation invocation = getInvocation();
if (invocation == null) {
if (getRequest() != null)
return getRequest().isUserInRole(role);
else
return false;
}
HashMap<String,String> roleMap = invocation.getSecurityRoleMap();
if (roleMap != null) {
String linkRole = roleMap.get(role);
if (linkRole != null)