Implemeting an efsm Extended finite-state machine java engine and xml or mysql storage for definitions