code: public void setValue(String value, String type) {
  
          checkFrozen();
          setAutoCreatePropertyDefinition(true);
          if (TYPE_SHARED.equalsIgnoreCase(type)) {
              // set the provided value as shared (resource) value
              setResourceValue(value);
          } else {
              // set the provided value as individual (structure) value
              setStructureValue(value);
          }
      }
docs: Sets the value of this property as either shared or
  individual value.<p>
  
  If the given type equals {@link CmsProperty#TYPE_SHARED} then
  the value is set as a shared (resource) value, otherwise it
  is set as individual (structure) value.<p>
  
  @param value the value to set
  @param type the value type to set