+ # a service sets urn:AGL:widget:provided-api
+ grep "urn:AGL:widget:provided-api" config.xml
+ if [ $? -eq 0 ] ; then
+ # we are a service, now determine the scope ...
+ grep "urn:AGL:permission::partner:scope-platform" config.xml
+ if [ $? -eq 0 ];then
+ SERVICE_PLATFORM=1
+ else
+ SERVICE_USER=1
+ fi
+ else
+ # we are an application
+ APPLICATION_USER=1
+ # no other type known (yet)
+ fi