code: public static final CmsProperty get(String name, List<CmsProperty> list) {
  
          CmsProperty property = null;
          name = name.trim();
          // 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);
                  if (property.m_name.equals(name)) {
                      return property;
                  }
              }
          } else {
              Iterator<CmsProperty> i = list.iterator();
              while (i.hasNext()) {
                  property = i.next();
                  if (property.m_name.equals(name)) {
                      return property;
                  }
              }
          }
  
          return NULL_PROPERTY;
      }
docs: Searches in a list for the first occurrence of a {@link CmsProperty} object with the given name.<p>
  
  To check if the "null property" has been returned if a property was
  not found, use {@link #isNullProperty()} on the result.<p>
  
  @param name a property name
  @param list a list of {@link CmsProperty} objects
  @return the index of the first occurrence of the name in they specified list,
  or {@link CmsProperty#getNullProperty()} if the name is not found