anchor.diff:  	del /f %pathToSynapseConfigs%\%%i
   	call :Timestamp value
   	echo %value% INFO - Removed the %%i file from %pathToSynapseConfigs%
  -)
  -EXIT /B 0
  -
  -:replaceAxis2File
  -if exist %pathToAxis2XML% (
  -	if exist %pathToAxis2TMXml% (
  -		ren %pathToAxis2XML% %axis2XMLBackup%
  -		call :Timestamp value
  -		echo %value% INFO - Rename the existing %pathToAxis2XML% file as %axis2XMLBackup%
  -		ren %pathToAxis2TMXml% %axis2XML%
  -		call :Timestamp value
  -		echo %value% INFO - Rename the existing %pathToAxis2TMXml% file as %axis2XML%
  -	)
  -)
  -EXIT /B 0
  -
  -:replaceRegistryXMLFile
  -if exist %pathToRegistry% (
  -	if exist %pathToRegistryTM% (
  -        ren %pathToRegistry% %registryBackup%
  -        call :Timestamp value
  -        echo %value% INFO - Rename the existing %pathToRegistry% file as %registryBackup%
  -        ren  %pathToRegistryTM% %registryXML%
  -        call :Timestamp value
  -        echo %value% INFO - Rename the existing %pathToRegistryTM% file as %registryXML%
  -	)
   )
   EXIT /B 0
   
  
positive.code: 
  :devportal
  echo Starting to optimize API Manager for the Developer Portal profile
  call :disableDataPublisher
  call :disableJMSConnectionDetails
  call :disableBlockConditionRetriever
  call :disablePolicyDeployer
  call :disableTransportSenderWS
  call :disableTransportSenderWSS
  call :removeWebSocketInboundEndpoint
  call :removeSecureWebSocketInboundEndpoint
  rem ---removing webbapps which are not required for this profile--------
  
negative.code: 	echo %value% INFO - Removed the %%i directory from %pathToJaggeryapps%
  )
  goto finishOptimization
  
  :removeWebSocketInboundEndpoint
  if exist %pathToInboundEndpoints%\WebSocketInboundEndpoint.xml (
  