code: public static Broker createBroker(int id, String brokerInfoString) {
          String[] brokerInfo = brokerInfoString.split(":");
          String creator = brokerInfo[0].replace('#', ':');
          String hostname = brokerInfo[1].replace('#', ':');
          String port = brokerInfo[2];
          boolean autocreated = Boolean.valueOf(brokerInfo.length > 3 ? brokerInfo[3] : "true");
          return new Broker(id, creator, hostname, Integer.parseInt(port), autocreated);
      }
docs: create a broker with given broker info
  
  @param id               broker id
  @param brokerInfoString broker info format: <b>creatorId:host:port:autocreated</b>
  @return broker instance with connection config
  @see #getZKString()