code: @Override
      protected void useImportDeclaration(ImportDeclaration importDeclaration) throws BinderException {
          LOG.debug("Create proxy" + importDeclaration.getMetadata());
  
          JAXWSImportDeclarationWrapper pojo = JAXWSImportDeclarationWrapper.create(importDeclaration);
  
          //Try to load the class
          final Class<?> klass;
          try {
              klass = loadClass(context, pojo.getClazz());
          } catch (ClassNotFoundException e) {
              LOG.error("Failed to load class", e);
              return;
          }
  
          final ClassLoader origin = Thread.currentThread().getContextClassLoader();
          try {
              ClientProxyFactoryBean factory;
              Object objectProxy;
  
              Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
              LOG.debug(String.valueOf(klass));
              //use annotations if present
              if (klass.isAnnotationPresent(WebService.class)) {
                  factory = new JaxWsProxyFactoryBean();
              } else {
                  factory = new ClientProxyFactoryBean();
              }
  
              factory.getInInterceptors().add(new LoggingInInterceptor());
              factory.getOutInterceptors().add(new LoggingOutInterceptor());
  
              //set the class XXX only one class is supported
              factory.setServiceClass(klass);
  
              factory.setAddress(pojo.getEndpoint());
  
              LOG.debug(String.valueOf(factory.getAddress()));
              LOG.debug(String.valueOf(factory.getServiceFactory()));
  
              //create the proxy
              objectProxy = factory.create();
  
              // set the importDeclaration has handled
              handleImportDeclaration(importDeclaration);
  
              //Publish object
              map.put(importDeclaration, registerProxy(objectProxy, klass));
          } finally {
              Thread.currentThread().setContextClassLoader(origin);
          }
      }
docs: /*--------------------------*
  ImporterService methods  *
  --------------------------