t1 = getController().getCpuTime();
SerialFormat serialFormat = endpoint.getSerialFormat();
XmiSerializationSharedData deserSharedData = null;
ReuseInfo reuseInfo = null;
UimaSerializer uimaSerializer = SerializerCache.lookupSerializerByThreadId();
byte[] binarySource = aMessageContext.getByteMessage();
switch (serialFormat) {
case XMI:
// Fetch serialized CAS from the message
String xmi = aMessageContext.getStringMessage();
deserSharedData = new XmiSerializationSharedData();
uimaSerializer.deserializeCasFromXmi(xmi, cas, deserSharedData, true, -1);
break;
case BINARY:
// *************************************************************************
// Register the CAS with a local cache
// *************************************************************************
// CacheEntry entry = getController().getInProcessCache().register(cas, aMessageContext,
// deserSharedData, casReferenceId);
// BINARY format may be COMPRESSED etc, so update it upon reading
serialFormat = uimaSerializer.deserializeCasFromBinary(binarySource, cas);
// BINARY format may be COMPRESSED etc, so update it upon reading
endpoint.setSerialFormat(serialFormat);
break;
case COMPRESSED_FILTERED:
ByteArrayInputStream bais = new ByteArrayInputStream(binarySource);