for (int i = 0; i < errorPageNL.getLength(); i++) {
Element errorPageE = (Element)errorPageNL.item(i);
String errorCode = XML.getChildElementText(errorPageE, "error-code");
String exceptionType = XML.getChildElementText(errorPageE, "exception-type");
String location = XML.getChildElementText(errorPageE, "location");
ErrorPageImpl errorPage = new ErrorPageImpl();
errorPage.setErrorCode(errorCode);
errorPage.setExceptionType(exceptionType);
errorPage.setLocation(location);
errorPages[i] = errorPage;
}
return errorPages;
}