code: public StringBuffer process(StringBuffer source) {
          CharSequence result = process((CharSequence) source);
          if (result instanceof StringBuffer) {
              return (StringBuffer) result;
          } else {
              return new StringBuffer(result);
          }
      }
docs: Process the text
  
  @param source the sourcetext
  @return the result of text processing