The EARMARK Java API