added SourceAFIS code to generate template