code: public static void assignMongoServers(LibertyServer libertyServer) throws Exception {
          MongoServerSelector mongoServerSelector = new MongoServerSelector(libertyServer);
          mongoServerSelector.updateLibertyServerMongos();
      }
docs: Reads a server configuration and replaces the placeholder values with an available host and port as specified in the mongo.properties file
  
  @param libertyServer The server configuration to assign Mongo servers to
  @throws Exception Can't connect to any of the specified Mongo servers