SLING-5712 - avoid windows file separator issues in ClassResourceVisitor, based on a patch by Emanuele Lombardi, thanks!