public ObjectInput startObjectInput(InputStream is, boolean isReentrant) throws IOException {
ObjectInput in = defaultMarshaller.startObjectInput(is, isReentrant);
int versionId;
try {
versionId = in.readShort();
if (trace) log.trace("Read version {0}", versionId);
}
catch (Exception e) {
finishObjectInput(in);
log.error("Unable to read version id from first two bytes of stream, barfing.");