private boolean matches(String matchHeader, String toMatch) {
        String[] matchValues = matchHeader.split("\\s*,\\s*");
        Arrays.sort(matchValues);
        return Arrays.binarySearch(matchValues, toMatch) > -1
                || Arrays.binarySearch(matchValues, "*") > -1;
    }
Returns true if the given match header matches the given value.

@param matchHeader The match header.
@param toMatch     The value to be matched.
@return True if the given match header matches the given value.
src/main/java/com/kodedu/controller/CacheResource.java