}
// if matches, convert the element to JAXBData
if (reqdHeader != null) {
// how to get contentOnly???
return new JAXBDataImpl(reqdHeader, context.getNamespaceContext(), false);
} else {
try {
Object body = secMessage.getBody();
if (body instanceof SecurityElement) {
SecurityElement se = (SecurityElement) body;
if (uri.equals(se.getId())) {
return new JAXBDataImpl(se, context.getNamespaceContext(), false);
}
} else if (body instanceof SOAPBody) {
SOAPBody soapBody = (SOAPBody) body;
if (uri.equals(soapBody.getId())) {
return new SSBData(soapBody, false, context.getNamespaceContext());