code: @Override
  	public void serialize(XMLStreamWriter writer) throws XMLStreamException {
  		String prefix = writer.getPrefix(CompressionPolicyBuilder.NAMESPACE);
  
          if (prefix == null) {
              prefix = "tpa";
              writer.setPrefix(prefix, CompressionPolicyBuilder.NAMESPACE);
          }
  
          // <tpa:Compression>
          writer.writeStartElement(prefix, CompressionPolicyBuilder.COMPRESSION_NAME, 
          		CompressionPolicyBuilder.NAMESPACE);
  
          // xmlns:tpa="http://types.talend.com/policy/assertion/1.0"
          writer.writeNamespace(prefix, CompressionPolicyBuilder.NAMESPACE);
  
          // attributes
          writer.writeAttribute(null, TRESHOLD_ATTRIBUTE_NAME, String.valueOf(threshold));
  
          // </tpa:Compression>
          writer.writeEndElement();
  	}
docs: /* (non-Javadoc)
  @see org.apache.neethi.Assertion#serialize(javax.xml.stream.XMLStreamWriter)