Java helper library to safely execute an external process