return new Date (millis.longValue());
}
return (Serializable)res;
} catch (JavaScriptException e) {
logger.error (e.getMessage (), e);
throw new ScriptException
(e.getMessage (),
(e.getValue() instanceof Throwable)
? (Throwable)e.getValue() : e);
} catch (SAXException e) {
logger.error (e.getMessage (), e);
throw new ScriptException (e.getMessage (), e);
} finally {
Context.exit();
}
}