code: public void setTransformer(Transformer t)
      {
          m_transformer = t;
          
          // If this transformer object implements the SerializerTrace interface
          // then assign m_tracer to the transformer object so it can be used
          // to fire trace events.
          if ((m_transformer instanceof SerializerTrace) &&
              (((SerializerTrace) m_transformer).hasTraceListeners())) {
             m_tracer = (SerializerTrace) m_transformer;
          } else {
             m_tracer = null;
          }
      }
docs: Sets the transformer associated with this serializer
  @param t the transformer associated with this serializer.
  @see SerializationHandler#setTransformer(Transformer)