Middleware can can break workflow in java too