}
if (correctClass == null) {
throw new CougarFrameworkException("Can't find event class for event named '"+eventNameFromMessage+"'");
}
AbstractEvent event = (AbstractEvent) dataBindingFactory.getUnMarshaller().unmarshall(is, correctClass, encodingType, true);
event.setMessageId(transportEvent.getStringProperty(JMSPropertyConstants.MESSAGE_ID_FIELD_NAME));
event.setCougarMessageRouteString(transportEvent.getStringProperty(JMSPropertyConstants.MESSAGE_ROUTING_FIELD_NAME));
//When other types of JMS field types (eg, not stored in the message body) become necessary
//This is where they'll be added
return event;