Encapsulated LifecycleContextImpl into StateMachineObjectBuilderImpl

Exposed getStateType method in StateMachineObject interface