code: public ContainerNetworkingConfig aliases(NetworkConfig config) {
          JsonObject endPoints = new JsonObject();
          endPoints.add("Aliases", JsonFactory.newJsonArray(config.getAliases()));
  
          JsonObject endpointConfigMap = new JsonObject();
          endpointConfigMap.add(config.getCustomNetwork(), endPoints);
  
          networkingConfig.add("EndpointsConfig", endpointConfigMap);
          return this;
      }
docs: Add networking aliases to a custom network
  
  @param config network config as configured in the pom.xml
  @return this configuration