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