DeploymentRolesMappingProvider drmp = new DeploymentRolesMappingProvider();
MappingResult<RoleGroup> result = new MappingResult<RoleGroup>();
//MappingResult<Group> result = new MappingResult<Group>();
drmp.setMappingResult(result);
drmp.performMapping(cmap, getGroup(new String[]{"gooduser","okuser"}));
return result.getMappedObject().containsRole(new SimpleRole("allowedUser"));
//return result.getMappedObject().isMember(new SimplePrincipal("allowedUser"));
}
private Map<String,Set<String>> getPrincipalRoleMap()