protected ProviderDef createDefinition(Map<String, Object> map) throws QuickFixException {
ProviderDef baseDef = getBaseDefinition((String) map.get("descriptor"), ProviderDef.class);
List<Stub<?>> stubs = getStubs(map.get("stubs"));
return (ProviderDef) Proxy.newProxyInstance(this.getClass()
.getClassLoader(), new Class<?>[] { ProviderDef.class, Resettable.class },
new DelegatingStubHandler(baseDef, stubs));
}