public static void addExtensionContent(PMML pmml, String key, Collection<?> content) {
    if (content.isEmpty()) {
      return;
    }
    String joined = TextUtils.joinPMMLDelimited(content);
    pmml.addExtensions(new Extension().setName(key).addContent(joined));
  }
public static void addExtensionContent ( PMML pmml , String key , Collection < ? > content ) { if ( content . isEmpty ( ) ) { return ; } String joined = TextUtils . joinPMMLDelimited ( content ) ; pmml . addExtensions ( new Extension ( ) . setName ( key ) . addContent ( joined ) ) ; }
@param pmml PMML model to add extension to, with a single {@code String} content and no value.
The content is encoded as if they were being added to a PMML {@link Array} and are
space-separated with PMML quoting rules
@param key extension key
@param content list of values to add as a {@code String}