try {
XmlRpcServer xmlrpc = new XmlRpcServer();
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
BloggerAPIHandler bloggerApi = (BloggerAPIHandler)ctx.getBean("bloggerApiHandler");
xmlrpc.addHandler("blogger", bloggerApi);
MetaWeblogAPIHandler metaweblogApi = (MetaWeblogAPIHandler)ctx.getBean("metaweblogApiHandler");
xmlrpc.addHandler("metaWeblog", metaweblogApi);