if(header instanceof SecurityElement){
return new SSEData((SecurityElement)header,contentOnly, context.getNamespaceContext(), props);
}if(header instanceof JAXBHeader){
return new JAXBDataImpl((com.sun.xml.ws.api.message.Header) header, contentOnly, context.getNamespaceContext(),JAXBUtil.getSEIJAXBContext());
}else if(header instanceof com.sun.xml.ws.api.message.Header){
return new StreamHeaderData((com.sun.xml.ws.api.message.Header)header,contentOnly, context.getNamespaceContext());
}else{
throw new XWSSecurityException("Unsupported Header type");
}
}