/** * Assert that a service understands a particular header. If not, a fault is thrown. * * @param context * @param name * @throws XFireFault */ protected void assertUnderstandsHeader(MessageContext context, QName name) throws XFireFault { if (context.getInPipeline().understands(name)) return; if (context.getOutPipeline().understands(name)) return; // TODO: Check Out pipeline for understanding throw new XFireFault("Header {" + name.getLocalPart() + "}" + name.getNamespaceURI() + " was not undertsood by the service.", XFireFault.MUST_UNDERSTAND); } }