Description
I checked the algorithm and I found in some situations, checkResourceExists could be called more times than necessary. handleSuffixMapping check urls against checkResourceExists, so there is no need to call it again from calculateAndCheckViewId, and in the default case if a wrong resource request is sent, .xhtml case is checked twice.