jndiName.lastIndexOf('/');
idx = jndiName.lastIndexOf('/');
   public String toString()   {      String nameFromJNDI = jndiName;      int idx = -1;      if (jndiName != null)      {         jndiName.lastIndexOf('/');      }      if (idx != -1)      {         nameFromJNDI = jndiName.substring(idx + 1);      }      StringBuffer sb = new StringBuffer();      if (isQueue())      {         sb.append("Queue");      }      else      {         sb.append("Topic");      }      sb.append('[');      if (name.equals(nameFromJNDI))      {         sb.append(jndiName);      }      else      {         sb.append(jndiName).append(", name=").append(name);      }      sb.append(']');      return sb.toString();   }