Java helper libreray to safely execute an external process