The resourceIdsAdd() called from getTemplateList() brings the exact value of resourceIds, while resourceIdsAdd() called from getTemplate() does not contain resourceIds.