Implemented PasteCommand for executing pasting to documents