Error in Nashorn Server Side rendering