code: public RoomInfo getRoomInfo(EntityBareJid room) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          DiscoverInfo info = serviceDiscoveryManager.discoverInfo(room);
          return new RoomInfo(info);
      }
docs: Returns the discovered information of a given room without actually having to join the room. The server will
  provide information only for rooms that are public.
  
  @param room the name of the room in the form "roomName@service" of which we want to discover its information.
  @return the discovered information of a given room without actually having to join the room.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException