20130923 add method to get app id from service.