try {
Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
getClass());
Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
new Class[] {cls},
new ReflectionInvokationHandler(md));
getService().put("org.apache.cxf.frontend.MethodDispatcher", o);
} catch (Exception ex) {
//ignore
}
}