*/
public static JMSRuntimeException convertToRuntimeException(JMSException e)
{
if (e instanceof javax.jms.IllegalStateException)
{
return new IllegalStateRuntimeException(e.getMessage(), e.getErrorCode(), e);
}
if (e instanceof InvalidClientIDException)
{
return new InvalidClientIDRuntimeException(e.getMessage(), e.getErrorCode(), e);
}