public void prepare() throws RemoteLookupFailureException {
   try {
     proxyFactory.setHttpClient(httpClient);
     this.thriftProxy = createThriftProxy(this.proxyFactory);
   } catch (Exception ex) {
     throw new RemoteLookupFailureException(
         "Service URL [" + getServiceUrl() + "] is invalid", ex);
   }
 }
 protected Object createThriftProxy(ThriftProxyFactory proxyFactory) throws Exception {
   Assert.notNull(getServiceInterface(), "'serviceInterface' is required");
   return proxyFactory.create(getServiceInterface(), getServiceUrl());
 }