code: private Object resolveBean(String name, Class<?> type)
     {
        try
        {
           return embedded.lookup(name, type);
        }
        catch (Throwable t)
        {
           return null;
        }
     }
docs: Resolve a bean
  @param name The name
  @param type The type
  @return The value