if (arrayDims != -1) {
localPart = localPart.substring(0, arrayDims);
}
marshaller.setRootElement(localPart);
// Marshall the Castor object into the stream (sink)
marshaller.marshal(value);
} catch (MarshalException me) {
log.error(Messages.getMessage("castorMarshalException00"), me);
throw new IOException(Messages.getMessage(
"castorMarshalException00")
+ me.getLocalizedMessage());