code: protected Map<String, CmsProperty> getPropertiesByName(List<CmsProperty> properties) {
  
          Map<String, CmsProperty> result = new HashMap<String, CmsProperty>();
          for (CmsProperty property : properties) {
              String key = property.getName();
              result.put(key, property.clone());
          }
          return result;
      }
docs: Converts a list of properties to a map.<p>
  
  @param properties the list of properties
  
  @return a map from property names to properties