Java Object Translation