protected static void configureErrorPage(WebModule webModule,
WebBundleDescriptor wmd) {
Enumeration enumeration = wmd.getErrorPageDescriptors();
ErrorPageDescriptor errorPageDesc;
ErrorPageDecorator decorator;
while (enumeration.hasMoreElements()){
errorPageDesc = (ErrorPageDescriptor)enumeration.nextElement();
decorator = new ErrorPageDecorator(errorPageDesc);
webModule.addErrorPage(decorator);