nsCOMPtr<nsIServiceManager> mgr; nsresult rv = NS_GetServiceManager(getter_AddRefs(mgr));  if (NS_FAILED(rv)) return rv;  return mgr->GetServiceByContractID(aContractID, NS_GET_IID(DestinationType), NS_REINTERPRET_CAST(void**, aDestination));
return CallGetService(aContractID, NS_GET_IID(DestinationType), NS_REINTERPRET_CAST(void**, aDestination));
CallGetService( const char *aContractID,                DestinationType** aDestination){    NS_PRECONDITION(aContractID, "null parameter");    NS_PRECONDITION(aDestination, "null parameter");        nsCOMPtr<nsIServiceManager> mgr;    nsresult rv = NS_GetServiceManager(getter_AddRefs(mgr));        if (NS_FAILED(rv))        return rv;    return mgr->GetServiceByContractID(aContractID,                                       NS_GET_IID(DestinationType),                                        NS_REINTERPRET_CAST(void**, aDestination));}