Fix for MULE-7147 Deprecated or undocumented code in WilcardFilter

This is a rework of the pull request #223 following the discussed agreements.

(sorry for now modifying the original pull request, I've mistakenly removed the original forked repo)