Saving compoinent returned by API.


Signed-off-by: Joanna Rozestwinska <joanna.rozestwinska@intel.com>