public static Object create(Class<?>[] ifaces, StateMachine sm) {
return create(ifaces, sm, new SingletonStateContextLookup());
}
public static Object create(Class<?>[] ifaces, StateMachine sm, StateContextLookup contextLookup) {
return create(ifaces, sm, contextLookup, null, new DefaultEventFactory());
}