code: public void setModelByText(String model) {
          try {
              InputStream is = new ByteArrayInputStream(model.getBytes());
              this.model = SCXMLParser.parse(new InputSource(is), null, customActionsFromTagExtensions());
              this.setStateMachine(this.model);
          } catch (IOException | SAXException | ModelException e) {
              e.printStackTrace();
          }
      }
docs: Sets the SCXML model with a string
  
  @param model the model text