code: public static int matchPath(Struct variables, Path[] restPath, String[] callerPath) {
  	if (restPath.length > callerPath.length) return -1;
  
  	int index = 0;
  	for (; index < restPath.length; index++) {
  	    if (!restPath[index].match(variables, callerPath[index])) return -1;
  	}
  	return index - 1;
      }
docs: check if caller path match the cfc path
  
  @param variables
  @param restPath
  @param callerPath
  @return match until which index of the given cfc path, returns -1 if there is no match