public void saveChanges() throws AxisFault {
log.debug("Enter: SOAPPart::saveChanges");
if ( currentForm == FORM_SOAPENVELOPE ||
currentForm == FORM_FAULT ){
String encoding = XMLUtils.getEncoding(msgObject, null);
ByteArray array = new ByteArray();
try {
this.writeTo(array,encoding,"false");
array.flush();
} catch (Exception e) {
throw AxisFault.makeFault(e);
}
setCurrentForm( array, FORM_OPTIMIZED );
if (log.isDebugEnabled()) {