state pattern framework for vertx.io