LPS-47954 get ddmTemplateKey from portlet preferences if it is not defined