The main difference between a web application and your code, Mauricio, is that a webapp usually works every request in isolation.
The problem then is, how to persist the ksession where your process live?
how to restore it when a user asks to work over that process instance again?
And, just for fun, how to come up with a working Spring configuration for all this?
Thanks,
Michele