private static DocumentTemplateContext getContext(
ContextTypeRegistry contextTypeRegistry, Template template,
String containerName, String fileName, IDocument document, CodeTemplateVariableHolder varHolder) {
if (fileName == null) {
return new DocumentTemplateContext(contextTypeRegistry
.getContextType(template.getContextTypeId()), document, 0,
0);
}