reuse header-logic from jaxws-implementation