Develop service layer. I have a nice idea to use Apache Velocity for code templates. I should try it as soon as possible!