public void setScope(String scope) {
    if (StringUtils.isBlank(scope)) {
      // ignore and use defaults
      return;
    }

    PropertyScope ps = PropertyScope.get(scope.toLowerCase().trim());
    if (ps == null) {
      throw new IllegalArgumentException(
          String.format("'%s' is not a valid property scope.", scope));
    }
    this.scope = ps;
  }
 public String getScope() {
   return scope.getScopeName();
 }