package com.melt.core;

public class Container {

    private InitializedBeans initializedBeans;
    private Container parentContainer;

    public <T> T resolve(Class targetClass) {
        T bean = initializedBeans.getBean(targetClass);
        if (bean == null && parentContainer != null) {
            bean = parentContainer.resolve(targetClass);
        }
        return bean;
    }

    public Object resolve(String beanName) {
        Object bean = initializedBeans.getBean(beanName);
        if (bean == null) {
            bean = parentContainer.resolve(beanName);
        }
        return bean;
    }

    public void setInitializedBeans(InitializedBeans initializedBeans) {
        this.initializedBeans = initializedBeans;
    }

    public void setParentContainer(Container parentContainer) {
        this.parentContainer = parentContainer;
    }
}

@@ -393,22 +393,21 @@
  public 
-Object
+%3CT%3E T
  resolve
@@ -438,21 +438,20 @@
     
-Object
+T
  bean =
+ (T)
  ini

add generic for resolve by name