class AnyScopePropertyAccessor implements PropertyAccessor {

    @Override
    public Object getProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name) {
        Request request = (Request) target;
        String attributeName = (String) name;
        for (String scopeName : request.getAvailableScopes()) {
            Map<String, Object> scope = request.getContext(scopeName);
            if (scope.containsKey(attributeName)) {
                return scope.get(attributeName);
            }
        }
        return null;
    }

}