Redo resources template structure and add resource insert method