Avoid Java clone()