Where do you put custom code?

Fatwire is a J2EE application

What if you need to deploy your own code?

Fatwire is a J2EE application - you deploy it by dropping a WAR file into your appserver, and then fiddling the environment for days until it works, just like a normal J2EE application. Once you start to go beyond simply displaying a bit of content with a template, you quickly find a need to deploy your own code into the Fatwire application.