In the simplest case, there is no custom code on the server. The server would only contain Cayenne mapping files, persistent classes and web.xml descriptor specifying deployment parameters of the service. Customization is done in one of the following ways: