}
public boolean isUserInRole(String roleName)
{
// Get the map role name to role link
ContainerSecurityInfo securityRoleRefsMap = container.getInfo().getSecurity();
// Process the role link
String roleLink = securityRoleRefsMap.getRoleRef(roleName);
//
if (roleLink == null)
{
if (securityRoleRefsMap.containsRoleRef(roleName))
{
// The role name exist without a role link value
return securityContext.isUserInRole(roleName);
}
else