According to the JCR spec, 2 paths are equal when:
- They contain the same number of segments.
- Each segment in P1 is equal to the segment at the same position in P2.
And two name segments are equal if and only if their JCR names are equal.
Since 2 JCR names are equal by calling a String.compareTo() method, then they are compared in a case-sensitive manner, and the answer to this question is therefore no, you can't write this condition so that the path is case insensitive.
See 3.4.8 Equality of Paths here: http://www.day.com/specs/jcr/2.0/3_Repository_Model.html