reconstruct java code