Creating YARG report template from byte array


I am using your YARG library in my project, trying to create some reports. Is there any way to load a template from byte array? Or is there any other way except load it from file? I dont have opportunity to load it from file.
Here is some part of my code:

byte[] bytes = FileUtils.readFileToByteArray(file);
        ReportTemplateBuilder reportTemplateBuilder = new ReportTemplateBuilder()
                .documentContent(bytes) //need to load template as byteArray
                .documentPath("some path") //need to be null
                .documentName(templateFile) //need to be null


It seems that you can simply remove the .readFileFromPath(); instruction. In this case the provided bytes will be used as report template content.