public Object getBusinessObject ( String interfaceName ) throws RemoteException { int interfaceIndex = ivBMD . getLocalBusinessInterfaceIndex ( interfaceName ) ; if ( interfaceIndex != - 1 ) { return getLocalBusinessObject ( interfaceIndex ) ; } interfaceIndex = ivBMD . getRemoteBusinessInterfaceIndex ( interfaceName ) ; if ( interfaceIndex != - 1 ) { return getRemoteBusinessObject ( interfaceIndex ) ; } throw new IllegalStateException ( "Requested business interface not found : " + interfaceName ) ; }
Method to get a business object given the name of the interface .