Sample code for the application server to use with Cometa