Object prop = properties.get(name); if (!(prop instanceof Short)) { throw new JMSException("Not short"); }
   public short getShortProperty(String name) throws JMSException   {      return ((Short)properties.get(name)).shortValue();   }