/*
* Checking whether MTOMSerializable is there. If so set optimizeElement.
* */
if(rpd.isMTOMSerialize()){
msgCtx.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
OptimizePartsConfig config= rpd.getOptimizePartsConfig();
if(config != null){
MessageOptimizer.optimize(msgCtx.getEnvelope(), config.getExpressions(), config.getNamespaces());
}
}
}