code: public int getAssignableRemoteBusinessInterfaceIndex(Class<?> target) {
          if (ivBusinessRemoteInterfaceClasses != null) {
              for (int i = 0; i < ivBusinessRemoteInterfaceClasses.length; i++) {
                  Class<?> bInterface = ivBusinessRemoteInterfaceClasses[i];
                  if (target.isAssignableFrom(bInterface)) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                          Tr.debug(tc, "getAssignableRemoteBusinessInterfaceIndex : " +
                                       bInterface.getName() + " at index " + i);
                      return i;
                  }
              }
          }
  
          return -1;
      }
docs: Gets the index of the remote business interface. This will also
  try to match the interface class passed in to a super type of a
  known interface of an EJB. <p>
  
  Note: this should only be used if necessary, as this is an expensive
  check. The getRemoteBusinessInterfaceIndex method should be used
  if this specialized check is not needed.
  
  @param target the class that needs to be matched to an interface
  @return the index of the found matching interface