Added parsing of exits with actions to Java to JSON script