try
{
HessianProxyFactoryBean factory = new HessianProxyFactoryBean();
factory.setServiceInterface(SpringHessianServer.class);
factory.setServiceUrl("http://localhost:8080/remoting/springHessianServerService");
factory.afterPropertiesSet();
springHessianServerService = (SpringHessianServer) factory.getObject();
if (false) throw new MalformedURLException("xxx");
}
catch (MalformedURLException e)
{