code: public Template getTemplate(final String name) throws ResourceNotFoundException {
          final Template template = this.cachedTemplates.get(name);
          if (template != null) {
              return template;
          }
          return createTemplateIfAbsent(name);
      }
docs: get template by name.
  
  @param name template's name
  @return Template
  @throws ResourceNotFoundException if resource not found