private static String readContent(Path filePath) throws IOException {
        byte[] contentBytes = Files.readAllBytes(filePath);
        return new String(contentBytes, StandardCharsets.UTF_8);
    }
Util class to read file content
modules/siddhi-core/src/main/java/io/siddhi/core/util/FileReader.java