protected final boolean in(String... path) {
        if (path.length != context.size()) {
            return false;
        }

        int i = 0;
        for (String element : context) {
            String pattern = path[i];
            if (!(pattern.equals("*") || pattern.equals(element))) {
                return false;
            }
            i += 1;
        }

        return true;
    }
@param path
           Path to test
@return True if the path provided is the same as the current context. False otherwise
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AbstractHandler.java