class Utils {
static final Log log = LogFactory.getLog(Utils.class);
public static ContainerFactory createContainerFactory(String name) throws ServletException {
ContainerFactory cf = tryInitContainerFactory(name);
if (cf==null)
cf = tryInitContainerFactory(ContainerFactory.class.getPackage().getName() + "." + name + ContainerFactory.class.getSimpleName());
if (cf==null)
throw new ConfigException("Cannot create container factory by name '" + name + "'.");
return cf;