source /usr/lib/wow/wowlib
echo "$SAP_INSTANCE_DEF" | while read sap_type sap_inst sap_prof sap_parm; do
  if [ "$sap_type" == "${sap_type#\#}" ]; then
	  echo "sap_type $sap_type"
	  echo "sap_inst $sap_inst"
	  echo "sap_prof $sap_prof"
	  echo "sap_parm $sap_parm"
	  echo
	  wow $WOWRSRCEMODIFY UUID=rsc_SAPInstance_${sap_inst}  \
		GROUPID=${GRPID} \
		SAP_INSTANCE=$sap_inst \
		SAP_START_PROFILE=$sap_prof \
		$sap_parm \
		$wowxml/01-group_resource_appl_sapinstance_${sap_type}.xml </dev/null
  fi
done
