if (contactInfoList.getEffectiveTargetIOR().getProfile().isLocal()){
return new SharedCDRContactInfoImpl(
orb, contactInfoList,
contactInfoList.getEffectiveTargetIOR(),
orb.getORBData().getGIOPAddressDisposition());
} else {
// REVISIT:
// on comm_failure maybe need to give IOR instead of located.
return new SocketFactoryContactInfoImpl(
orb, contactInfoList,
contactInfoList.getEffectiveTargetIOR(),
orb.getORBData().getGIOPAddressDisposition(),
socketInfoCookie);
}