if (getComponentKey() instanceof Class && proxyFactory.canProxy((Class) getComponentKey())) {
proxyTypes = new Class[]{(Class) getComponentKey()};
} else {
proxyTypes = ClassHierarchyIntrospector.addIfClassProxyingSupportedAndNotObject(getComponentImplementation(), getComponentImplementation().getInterfaces(), proxyFactory);
}
ObjectReference reference = new ImplementationHidingReference(getDelegate(), container);
return HotSwapping.object(proxyTypes, proxyFactory, reference, true);
}