mapfishapp: using adequate exception format depending on WMS version