short reqAddrDisp = target.discriminator();
switch (orbTargetAddrPref) {
case ORBConstants.ADDR_DISP_OBJKEY :
if (reqAddrDisp != KeyAddr.value) {
throw new AddressingDispositionException(KeyAddr.value);
}
break;
case ORBConstants.ADDR_DISP_PROFILE :
if (reqAddrDisp != ProfileAddr.value) {
throw new AddressingDispositionException(ProfileAddr.value);
}
break;
case ORBConstants.ADDR_DISP_IOR :
if (reqAddrDisp != ReferenceAddr.value) {
throw new AddressingDispositionException(ReferenceAddr.value);
}
break;
case ORBConstants.ADDR_DISP_HANDLE_ALL :
break;
default :