for (Class<?> clazz : ancestors(beanClass)) {
if (!classPermissions.contains("*") || !classPermissions.contains(clazz.getName())){
RolesAllowed rolesAllowed = clazz.getAnnotation(RolesAllowed.class);
PermitAll permitAll = clazz.getAnnotation(PermitAll.class);
if (rolesAllowed != null && permitAll != null){
ejbModule.getValidation().fail(ejbName, "permitAllAndRolesAllowedOnClass", clazz.getName());
}