code: public <T> T lookup(String name, Class<T> expectedType) throws Throwable
     {
        if (name == null)
           throw new IllegalArgumentException("Name is null");
  
        if (expectedType == null)
           throw new IllegalArgumentException("ExpectedType is null");
  
        if (!started)
           throw new IllegalStateException("Container not started");
  
        return kernel.getBean(name, expectedType);
     }
docs: Lookup a bean
  @param <T> the generic type
  @param name The bean name
  @param expectedType The expected type for the bean
  @return The bean instance
  @exception Throwable If an error occurs