code: public void setScope(String key) {
          Integer value = key != null ? SCOPES.get(key.toLowerCase()) : null;
          varScope = value != null ? value : null;
      }
docs: Determine the varScope (<code>page</code>, <code>request</code> or <code>session</code>)
  for the component instance attribute