Hum, yeah was not sure, I basically copy/paste this class from UP https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/RestApplication.java