public JsonDataGeneratorFactory(Settings settings) {
   super(settings);
   this.jsonMode = settings.getMode(JsonMode.class);
 }
 public DatagramParserFactory(Settings settings) {
   super(settings);
   datagramMode = settings.getMode(DatagramMode.class);
 }