Changed the throw AddTemplatesException position in the add-templates method so that the add-templates will throw it in case of partial failure (and not the RestClientException).