code: protected static CmsProperty createPropertyObject(String name, String value) {
  
          CmsProperty prop = new CmsProperty();
          prop.setAutoCreatePropertyDefinition(true);
          prop.setName(name);
          if (OpenCms.getWorkplaceManager().isDefaultPropertiesOnStructure()) {
              prop.setValue(value, CmsProperty.TYPE_INDIVIDUAL);
          } else {
              prop.setValue(value, CmsProperty.TYPE_SHARED);
          }
          return prop;
      }
docs: Creates a single property object and sets the value individual or shared depending on the OpenCms settings.<p>
  
  @param name the name of the property
  @param value the value to set
  @return an initialized property object