A hierarchical phrase-based translation system written in Java