A port of beam-js to java