Jibri with simultaneous streaming & recording

Hi everyone! I implemented simultaneous streaming and recording through modification of some existing Jibri code. It works in a way that if you start streaming using HTTP API with set recording directory location you will get a local record of your stream in that directory. I guess it may also work fine in some other scenarios though I did not test it. My code is obviously a very disgraceful one and does not worth a PR for now, but it seems to work and may be of some help to others, so I decided to share it. Here is a link to my fork on Github.
Command to build Jibri:
mvn clean verify package

you can achieve this much easier by using the NGINX/RTMP proxy. here’s the guide i’ve written up