Node oClassNode = pNode.getAttributes().getNamedItem(Constants.ATTR_TYPE);
Node oUrlNode = pNode.getAttributes().getNamedItem(Constants.ATTR_URL);
if (oClassNode == null && oUrlNode == null) {
throw new ConfigurationException(String.format(Messages.ATTRIBUTE_REQUIRED, Constants.ATTR_URL));
}
IRewriteErrorHandler oHandler = null;
try {
if (oClassNode != null) {
//Class oClass = Class.forName(oClassNode.getNodeValue());
//oHandler = (IRewriteErrorHandler) oClass.newInstance();
oHandler = pConfig.getBeanFactory().newInstance(IRewriteErrorHandler.class, oClassNode.getNodeValue());