Added lifecycle stubs.Implemented attach lifecycle.Other actions; promote and demote cannot be implement due to a bug in the underlying Java class