return createContext(new Class[] {clazz});
}
private BindingCustomization getCustomization()
{
BindingCustomization customization = null;
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
if(msgContext!=null) // may not be available anytime
{
Iterator<BindingCustomization> it = msgContext.getEndpointMetaData().getBindingCustomizations().iterator();
while(it.hasNext())
{
BindingCustomization current = it.next();
if(current instanceof JAXBBindingCustomization)
{
customization = current;
break;
}