get ddmTemplateKey from portlet preferences if it is not defined