Map<Class, Object> resources = CollectionFactory.newMap(this.resourcesDefaults);
resources.put(Object.class, delegate);
resources.put(serviceInterface, delegate);
InjectionResources injectionResources = new MapInjectionResources(resources);
Object result = invoke(injectionResources);
if (result != null && !serviceInterface.isInstance(result)) { throw new RuntimeException(
IOCMessages.decoratorReturnedWrongType(method, serviceId, result, serviceInterface)); }