Make method in RequestMappingHandlerMapping protected

Issue: SPR-10950