found issue with overloaded java method appendcopy