In this example
topic2 will be replaced by topic1 in the output. The copy operation includes the automatically generated declaration code.