code: public void setModelByInputFileStream(InputStream inputFileStream) {
          try {
              this.model = SCXMLParser.parse(new InputSource(inputFileStream), null, customActionsFromTagExtensions());
              this.setStateMachine(this.model);
          } catch (IOException | SAXException | ModelException e) {
              e.printStackTrace();
          }
      }
docs: Sets the SCXML model with an InputStream
  
  @param inputFileStream the model input stream