code: public void setType(String type) throws ApplicationException {
  	type = type.toLowerCase().trim();
  
  	if (type.equals("exclusive")) {
  	    this.type = LockManager.TYPE_EXCLUSIVE;
  	}
  	else if (type.startsWith("read")) {
  	    this.type = LockManager.TYPE_READONLY;
  	}
  	else throw new ApplicationException("invalid value [" + type + "] for attribute [type] from tag [lock]", "valid values are [exclusive,read-only]");
      }
docs: set the value type readOnly or Exclusive. Specifies the type of lock: read-only or exclusive.
  Default is Exclusive. A read-only lock allows more than one request to read shared data. An
  exclusive lock allows only one request to read or write to shared data.
  
  @param type value to set
  @throws ApplicationException