* @see org.apache.geronimo.jms.test.mdb.MessageReceiver#processMessage(TransferObject)
*/
@Override
protected TransferObject processMessage(TransferObject obj) throws ProcessingException {
if (obj == null) {
throw new ProcessingException("Object received in message is null");
} else if (!SimpleTransferObject.class.isInstance(obj)) {
throw new ProcessingException(MessageFormat.format("Invalid class of object {0} included in received message", obj.getClass()));
} else {
SimpleTransferObject to = (SimpleTransferObject) obj;
to.markProcessed();
return to;
}