static public FeatureCollectionConfig getConfigFromSnippet(String filename) {

    org.jdom2.Document doc;
    try {
      SAXBuilder builder = new SAXBuilder();
      doc = builder.build(filename);
    } catch (Exception e) {
      System.out.printf("Error parsing featureCollection %s err = %s", filename, e.getMessage());
      return null;
    }

    return FeatureCollectionReader.readFeatureCollection(doc.getRootElement());
  }
static public FeatureCollectionConfig getConfigFromSnippet ( String filename ) { org . jdom2 . Document doc ; try { SAXBuilder builder = new SAXBuilder ( ) ; doc = builder . build ( filename ) ; } catch ( Exception e ) { System . out . printf ( "Error parsing featureCollection %s err = %s" , filename , e . getMessage ( ) ) ; return null ; } return FeatureCollectionReader . readFeatureCollection ( doc . getRootElement ( ) ) ; }
input is xml file with just the <featureCollection>