code: public TemplateResources templateResources() {
          if (templates.get() == null) {
              templates.compareAndSet(null, new TemplateResourcesImpl(this));
          }
          return templates.get();
      }
docs: Returns the TemplateResources instance that provides access to Template resources.
  
  @return the template resources