code: protected void bindInterfaces(NameSpaceBinder<?> binder, BeanMetaData bmd) throws Exception {
          HomeWrapperSet homeSet = null;
          EJSHome home = bmd.homeRecord.getHome();
          if (home != null) {
              homeSet = home.getWrapperSet();
          }
  
          int numRemoteInterfaces = countInterfaces(bmd, false);
          int numLocalInterfaces = countInterfaces(bmd, true);
          boolean singleGlobalInterface = (numRemoteInterfaces + numLocalInterfaces) == 1;
  
          bindInterfaces(binder, bmd, homeSet, false, numRemoteInterfaces, singleGlobalInterface);
          bindInterfaces(binder, bmd, homeSet, true, numLocalInterfaces, singleGlobalInterface);
      }
docs: Bind all local and remote interfaces for a bean to all binding locations.
  
  @param binder the namespace binder
  @param bmd the bean
  @param homeSet the remote and local home wrappers, or <tt>null</tt> if
  deferred initialization bindings should be used