code: 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);
      }
docs: Method to get a business object given the name of the interface.
  
  @param interfaceName the interface name
  @return the business object
  @throws IllegalStateException if the interface name is not valid
  @throws RemoteException if an error occurs obtaining a remote object