avoid copy java code if it does not exist