code: public static SourceSnippet forText(final String text) {
      return new SourceSnippet() {
        public String getSource(InjectorWriteContext writeContext) {
          return text;
        }
      };
    }
docs: Creates a snippet that generates a constant text string.