Class objectClass = Class.forName(type);
Class objectClass = getClassForType(type);
    private void initConfiguration(ActionServlet servlet, ModuleConfig config) throws ServletException {        Element root = readConfigRootElement(servlet, "config", getConfig());        if (root != null) {            List renderers = root.getChildren();            for (Iterator iter = renderers.iterator(); iter.hasNext();) {                Element rendererElement = (Element) iter.next();                String type = rendererElement.getAttributeValue("type");                String layout = rendererElement.getAttributeValue("layout");                String className = rendererElement.getAttributeValue("class");                Properties rendererProperties = new Properties();                List properties = rendererElement.getChildren("property");                for (Iterator iterator = properties.iterator(); iterator.hasNext();) {                    Element propertyElement = (Element) iterator.next();                    String propertyName = propertyElement.getAttributeValue("name");                    String propertyValue = propertyElement.getAttributeValue("value");                    rendererProperties.setProperty(propertyName, propertyValue);                }                try {                    Class objectClass = Class.forName(type);                    Class rendererClass = Class.forName(className);                    String modeName = rendererElement.getAttributeValue("mode");                    if (modeName == null) {                        modeName = "output";                    }                                        RenderMode mode = RenderMode.getMode(modeName);                                        logger.info("[" + modeName + "] adding new renderer: " + objectClass + "/" + layout + "/"                            + rendererClass + "/" + rendererProperties);                    RenderKit.getInstance().registerRenderer(mode, objectClass, layout, rendererClass,                            rendererProperties);                } catch (ClassNotFoundException e) {                    logger.error("could not register new renderer: " + e);                    e.printStackTrace();                }            }        }    }