If you know the URL of the server and the name of the layer that you want to visualize on the map, you can create an ILcdDataSource for it and pass that to the TLcyDataFormatManager.

static void createWMSModelFromDataSource(ILcyLucyEnv aLucyEnv, ILcyGenericMapComponent<?, ?> aMapComponent) throws IOException {
  //Create a datasource
  String serverName = "https://sampleservices.luciad.com/wms";
  String layerName = "92c09725-a9c5-46fb-bffd-d9e23b4abbf2";

  TLcdWMSDataSource dataSource = TLcdWMSDataSource.newBuilder()
                                                  .uri(serverName)
                                                  .addLayer(layerName)
                                                  .build();

  //Use the data format manager to load the data on the map
  //This will perform the data loading on the calling thread
  //To avoid blocking the UI, best to execute this method on a background thread and not on the EDT
  TLcyDataFormatManager dataFormatManager = aLucyEnv.getDataFormatManager();
  dataFormatManager.handleDataSources(new ILcdDataSource[]{dataSource},
                                      aMapComponent,
                                      aMapComponent.getComponent());
}

See Loading data documentation for more details on how to load data on a Lucy map.