@Override
protected void initializeProvider(InterceptorProvider provider, Bus bus) {
FIStaxInInterceptor in = new FIStaxInInterceptor();
FIStaxOutInterceptor out = new FIStaxOutInterceptor(force);
if (serializerAttributeValueMapMemoryLimit != null && serializerAttributeValueMapMemoryLimit.intValue() > 0) {
out.setSerializerAttributeValueMapMemoryLimit(serializerAttributeValueMapMemoryLimit.intValue());
}
if (serializerMinAttributeValueSize != null && serializerMinAttributeValueSize.intValue() > 0) {
out.setSerializerMinAttributeValueSize(serializerMinAttributeValueSize.intValue());
}
if (serializerMaxAttributeValueSize != null && serializerMaxAttributeValueSize.intValue() > 0) {
out.setSerializerMaxAttributeValueSize(serializerMaxAttributeValueSize.intValue());
}
if (serializerCharacterContentChunkMapMemoryLimit != null
&& serializerCharacterContentChunkMapMemoryLimit.intValue() > 0) {
out.setSerializerCharacterContentChunkMapMemoryLimit(
serializerCharacterContentChunkMapMemoryLimit.intValue());
}
if (serializerMinCharacterContentChunkSize != null && serializerMinCharacterContentChunkSize.intValue() > 0) {
out.setSerializerMinCharacterContentChunkSize(serializerMinCharacterContentChunkSize.intValue());
}
if (serializerMaxCharacterContentChunkSize != null && serializerMaxCharacterContentChunkSize.intValue() > 0) {
out.setSerializerMaxCharacterContentChunkSize(serializerMaxCharacterContentChunkSize.intValue());
}
provider.getInInterceptors().add(in);
provider.getInFaultInterceptors().add(in);
provider.getOutInterceptors().add(out);