squirrel-foundation provided an easy use, type safe and highly extensible state machine implementation for Java.