}
}
}
// patch the primary address if SSL (or TLS) is required by the target.
IIOPProfile iiopProfile = findIIOPProfile(profiles);
if (iiopProfile != null)
{
TaggedComponentList components =
(TaggedComponentList)componentMap.get(ObjectUtil.newInteger(TAG_INTERNET_IOP.value));
if(this.isSSLRequiredInComponentList(components))
{
iiopProfile.patchPrimaryAddress(new IIOPAddress(null, 0));
}
}
// add GIOP 1.0 profile if necessary
if ( (iiopProfile != null)
&& ( this.giopMinorVersion == 0 || this.giopAdd_1_0_Profiles ))
{
Profile profile_1_0 = iiopProfile.to_GIOP_1_0();
profiles.add(profile_1_0);
// shuffle all components over into the multiple components profile
TaggedComponentList iiopComponents =
(TaggedComponentList)componentMap.get(ObjectUtil.newInteger(TAG_INTERNET_IOP.value));
multipleComponents.addAll(iiopProfile.getComponents());
multipleComponents.addAll(iiopComponents);
// if we only want GIOP 1.0, remove the other profile
if (giopMinorVersion == 0)
{