out.println("\tProfile Id:\t\t" + i);
ProfileBase profile = (ProfileBase)profiles.get(i);
out.println("\tIIOP Version:\t\t" +
(int)profile.version().major + "." +
(int)profile.version().minor);
if (profile instanceof IIOPProfile)
{
out.println("\tHost:\t\t\t" +
((IIOPAddress)((IIOPProfile)profile).getAddress()).getOriginalHost());
int port = ((IIOPAddress)((IIOPProfile)profile).getAddress()).getPort();