RegistryFactory.getRegistry().set("config.debugMode", Config.debugMode);
String handler = data.get("ice.app.errorhandler", "org.ice.module.ErrorHandler");
if (handler != null) {
try {
IErrorHandler errorHandler = (IErrorHandler) FieldUtils
.loadClass(handler);
RegistryFactory.getRegistry().set("config.errorHandler",
errorHandler);
} catch (ClassCastException ex) {
LogUtils.log(Level.WARNING, "Invalid error handler: " + handler);