private Automaton getInputAutomaton() throws SerializationException {
   if (isXmlInstance()) {
     return automatonService.automatonFrom(getXmlInput());
   } else {
     return automatonService.automatonFrom(getJsonInput());
   }
 }