code: protected static Map<String, String> convertProperties(
          CmsObject cms,
          Map<String, String> props,
          Map<String, CmsXmlContentProperty> propConfig,
          boolean toClient) {
  
          Map<String, String> result = new HashMap<String, String>();
          for (Map.Entry<String, String> entry : props.entrySet()) {
              String propName = entry.getKey();
              String propValue = entry.getValue();
              String type = "string";
              CmsXmlContentProperty configEntry = getPropertyConfig(propConfig, propName);
              if (configEntry != null) {
                  type = configEntry.getType();
              }
              String newValue = convertStringPropertyValue(cms, propValue, type, toClient);
              result.put(propName, newValue);
          }
          return result;
      }
docs: Helper method for converting a map of properties from client format to server format or vice versa.<p>
  
  @param cms the CmsObject to use for VFS operations
  @param props the map of properties
  @param propConfig the property configuration
  @param toClient if true, convert from server to client, else from client to server
  
  @return the converted property map