code: public static final List<CmsProperty> setAutoCreatePropertyDefinitions(List<CmsProperty> list, boolean value) {
  
          CmsProperty property;
  
          // choose the fastest method to traverse the list
          if (list instanceof RandomAccess) {
              for (int i = 0, n = list.size(); i < n; i++) {
                  property = list.get(i);
                  property.m_autoCreatePropertyDefinition = value;
              }
          } else {
              Iterator<CmsProperty> i = list.iterator();
              while (i.hasNext()) {
                  property = i.next();
                  property.m_autoCreatePropertyDefinition = value;
              }
          }
  
          return list;
      }
docs: Calls <code>{@link #setAutoCreatePropertyDefinition(boolean)}</code> for each
  property object in the given List with the given <code>value</code> parameter.<p>
  
  This method will modify the objects in the input list directly.<p>
  
  @param list a list of {@link CmsProperty} objects to modify
  @param value boolean value
  
  @return the modified list of {@link CmsProperty} objects
  
  @see #setAutoCreatePropertyDefinition(boolean)