A stateful model implementation based on the Nooku Framework model APIs