else if ("element".equals(tagName))
{
// type is not really used anymore. We always return org.pentaho.reporting.engine.classic.core.Element
final String type = atts.getValue(getUri(), "type");
final ElementFactoryCollector fc = (ElementFactoryCollector)
getRootHandler().getHelperObject
(ReportDefinitionReadHandler.ELEMENT_FACTORY_KEY);
final Element element = fc.getElementForType(type);
if (element == null)
{
throw new ParseException("There is no factory for elements of type '" +
type + '\'', getLocator());
}