class ScopePropertyAccessor implements PropertyAccessor {

    @Override
    public Object getProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name) {
        Request request = (Request) target;
        String scope = (String) name;
        if (scope.endsWith("Scope")) {
            String scopeName = scope.substring(0, scope.length() - SCOPE_SUFFIX_LENGTH);
            return request.getContext(scopeName);
        }
        return null;
    }

}