code: private void doDeployNetwork(final Message<JsonObject> message) {
      Object network = message.body().getValue("network");
      if (network != null) {
        if (network instanceof String) {
          doDeployNetwork((String) network, message);
        } else if (network instanceof JsonObject) {
          JsonObject jsonNetwork = (JsonObject) network;
          try {
            NetworkConfig config = serializer.deserializeObject(jsonNetwork, NetworkConfig.class);
            doDeployNetwork(config, message);
          } catch (SerializationException e) {
            message.reply(new JsonObject().putString("status", "error").putString("message", e.getMessage()));
          }
        } else {
          message.reply(new JsonObject().putString("status", "error").putString("message", "Invalid network configuration."));
        }
      } else {
        message.reply(new JsonObject().putString("status", "error").putString("message", "No network specified."));
      }
    }
docs: Deploys a network.