+ # the file naming convention is servicename.wgt
+ # but some didnt respect it
+ export WGTSERVICENAME=$(grep 'id=.*' config.xml | cut -d= -f2 | cut -d'"' -f2)
+ if [ -z "$WGTSERVICENAME" ];then
+ echo "WARN: failed to find name in config.xml, fallback to filename"
+ export WGTSERVICENAME="$WGTNAME"
+ else
+ echo "DEBUG: detected service name as $WGTSERVICENAME"
+ fi