code: public final SimpleFeatureCollection autoTreat(final Template template, final String features)
              throws IOException {
          SimpleFeatureCollection featuresCollection = treatStringAsURL(template, features);
          if (featuresCollection == null) {
              featuresCollection = treatStringAsGeoJson(features);
          }
          return featuresCollection;
      }
docs: Get the features collection from a GeoJson inline string or URL.
  
  @param template the template
  @param features what to parse
  @return the feature collection
  @throws IOException