Support to templatemap