Returns a RoleMapper corresponding to the AppName.
param
The Application Name of this RoleMapper.
// if the appName is not appname but contextid for
// web apps then get the appname
String contextId = appName;
String appname = getAppNameForContext(appName);
SecurityRoleMapper srm = null;
if(appname != null)
srm = RoleMapper.getRoleMapper(appname);
if(srm == null){
srm = RoleMapper.getRoleMapper(contextId);
}
return srm;