Creating new Component Template and export it to a archive and import in a new project area
I have this requirement, where I need to copy a component from project area A to the brand new project area B. To achieve this, I want to create a new Template for component A and download the Template and import it in the project area B. Anybody has done this ? I want to do this in JAVA/ REST API.