private Adaptrex adaptrex;
public AdaptrexService(ApplicationGlobals globals, RegistryShutdownHub registryShutdownHub) throws Exception {
ServerRuntime rt = new ServerRuntime("cayenne-sandbox.xml");
CayennePersistenceManager cpm = new CayennePersistenceManager(rt);
this.adaptrex = new Adaptrex(cpm);
this.adaptrex.initialize(globals.getServletContext());
registryShutdownHub.addRegistryShutdownListener(new Runnable() {
public void run() {