return ((TextMessage) msg).getText();
}
else if (msg == null)
return null;
else
throw new JmsRuntimeException(L.l("'{0}' is an unsupported message for the BlockingQueue API.",
msg));
}
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new JmsRuntimeException(e);
}
}