for (int m = 0; m < scss.size(); m++) {
Map.Entry entry = (Map.Entry) scss.get(m);
Object scs = entry.getValue();
String p = (String) entry.getKey();
for (int c = 0; c < LazyList.size(scs); c++) {
SecurityConstraint sc = (SecurityConstraint) LazyList.get(scs, c);
if (!sc.forMethod(request.getMethod())) continue;
if (pattern != null && !pattern.equals(p)) break loop;
pattern = p;
// Check the method applies
if (!sc.forMethod(request.getMethod())) continue;
// Combine auth constraints.
if (sc.getAuthenticate()) {
if (!sc.isAnyRole()) {
List scr = sc.getRoles();
if (scr == null || scr.size() == 0) {
forbidden = true;
break loop;
}
}