class JmsUtils {

  public static void deleteTemporaryDestination(Destination d) {
    if (d == null) return;
    if (d instanceof TemporaryQueue) {
      deleteQuietly((TemporaryQueue) d);
    }
    if (d instanceof TemporaryTopic) {
      deleteQuietly((TemporaryTopic) d);
    }
  }

}