code: final
    protected <T> T create(Class<T> type, InjectContext env)
      throws ConfigException
    {
      try {
        T value = type.newInstance();
  
        inject(value, env);
        
        return value;
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw ConfigException.wrap(e);
      }
    }
docs: Configures a bean given a class to instantiate.