{
Map<String,Long> actions = new HashMap<String,Long>();
boolean useMask = false;
Permissions p = (Permissions) cls.getAnnotation(Permissions.class);
if (p != null)
{
org.jboss.seam.annotations.security.permission.Permission[] permissions = p.value();
if (permissions != null)
{
for (org.jboss.seam.annotations.security.permission.Permission permission : permissions)
{
actions.put(permission.action(), permission.mask());