Fixed issue with reflection in CopyAction.

Change-Id: Iedbed37083d0e388a9c952c06ce0674026d37314