Object prop = properties.get(name); if (!(prop instanceof Long)) { throw new JMSException("Not long"); }
   public long getLongProperty(String name) throws JMSException   {      return ((Long)properties.get(name)).longValue();   }