public static Optional < StartEvent > createStartEvent ( Identification source ) { try { StartEvent startRequest = new StartEvent ( source ) ; return Optional . of ( startRequest ) ; } catch ( IllegalArgumentException e ) { return Optional . empty ( ) ; } }
creates a new StartEvent . Assumes the Output is using the java - sound output .