@Override
  protected FileTemplate getTemplate(final Project project, final PsiDirectory dir) {
    return myTemplate.get();
  }
@Override
  protected FileTemplate getTemplate(final Project project, final PsiDirectory dir)