Map<String, Object> config = new HashMap<String, Object>();
config.put("class", JsonParser.class.getCanonicalName());
config.put("processors", processors);
config.put("flatten", true);
config.put("filters", Arrays.asList(filter1, filter2));
return new ModuleFactory().createParser("x", config);
}