if [ -z "$WGTSERVICENAME" ];then
echo "WARN: failed to find name in config.xml, fallback to filename"
export WGTSERVICENAME="$WGTNAME"
if [ -z "$WGTSERVICENAME" ];then
echo "WARN: failed to find name in config.xml, fallback to filename"
export WGTSERVICENAME="$WGTNAME"