private void registerBeanWithAllInterfaces(Object obj) {
        Class<?>[] interfaces = obj.getClass().getInterfaces();
        for (Class<?> parentInterface : interfaces) {
            this.instancePool.put(parentInterface, obj);
        }
    }