in web/src/main/java/org/apache/commons/chain2/web/servlet/ServletApplicationScopeMap.java [53:66]
public boolean containsValue(Object value) {
if (value == null) {
return (false);
}
@SuppressWarnings( "unchecked" ) // it is known that attribute names are String
Enumeration<String> keys = context.getAttributeNames();
while (keys.hasMoreElements()) {
Object next = context.getAttribute(keys.nextElement());
if (value.equals(next)) {
return (true);
}
}
return (false);
}