code: public PdfContentByte getDuplicate() {
          PdfTemplate tpl = new PdfTemplate();
          tpl.writer = writer;
          tpl.pdf = pdf;
          tpl.thisReference = thisReference;
          tpl.pageResources = pageResources;
          tpl.bBox = new Rectangle(bBox);
          tpl.group = group;
          tpl.layer = layer;
          if (matrix != null) {
              tpl.matrix = new PdfArray(matrix);
          }
          tpl.separator = separator;
          return tpl;
      }
docs: Gets a duplicate of this <CODE>PdfTemplate</CODE>. All
  the members are copied by reference but the buffer stays different.
  @return a copy of this <CODE>PdfTemplate</CODE>