code: public void setScope(String scope) throws ApplicationException {
  	scope = scope.toLowerCase().trim();
  
  	if (scope.equals("server")) this.scope = SCOPE_SERVER;
  	else if (scope.equals("application")) this.scope = SCOPE_APPLICATION;
  	else if (scope.equals("session")) this.scope = SCOPE_SESSION;
  	else if (scope.equals("request")) this.scope = SCOPE_REQUEST;
  	else throw new ApplicationException("invalid value [" + scope + "] for attribute [scope] from tag [lock]", "valid values are [server,application,session]");
      }
docs: set the value scope Specifies the scope as one of the following: Application, Server, or Session.
  This attribute is mutually exclusive with the name attribute.
  
  @param scope value to set
  @throws ApplicationException