Implement srm ping in gfal2 (it exists in srm-ifce)
if surl is srm
if ping fails
session reuse false and proceed
else if check if "backend_type:CASTOR"
set gridtp session reuse to false
the same for destination, if any of them is castor set gridftp session reuse to false.
-catch the exception if, for any reason, occurs, let it go through and do not stop the process since it could be transient error, we do not want the transfer to be affected. At such case (exception) set session reuse to false
-check both lower and upper case for castor
-do the check only and only if source or dest are srm