/** Retrieves a component by name and ensures the returned component is * initialized. * @return the initialized component, never returns null. * @param name is the name of the component. * @throws RuntimeException if the type parameter is null. * @throws RuntimeException if the component can not be found in the brewery */ public synchronized Object get(String name) { Object component = getOpt(name); if (component!=null) { return component; } throw new RuntimeException("Unknown component name: '"+name+"' \n"+toString()); }