A translator from Java to C++ using the tool xtc