private void extractRelatesToInformation(SOAPHeaderBlock soapHeaderBlock, Options messageContextOptions) { String address = soapHeaderBlock.getText(); // Extract the RelationshipType attribute if it exists OMAttribute relationshipType = soapHeaderBlock.getAttribute( new QName(AddressingConstants.WSA_RELATES_TO_RELATIONSHIP_TYPE)); String relationshipTypeString = relationshipType == null ? null : relationshipType.getAttributeValue(); if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) { log.trace("extractRelatesToInformation: Extracted Relationship. Value=" + address + " RelationshipType=" + relationshipTypeString); } RelatesTo relatesTo = new RelatesTo(address, relationshipTypeString); ArrayList attributes = extractAttributesFromSOAPHeaderBlock(soapHeaderBlock); relatesTo.setExtensibilityAttributes(attributes); messageContextOptions.addRelatesTo(relatesTo); // Completed processing of this header soapHeaderBlock.setProcessed(); }