function fire(cmd, state) {
  const kind = this.getCommandKind(cmd);
  switch (kind) {
    case CommandKind.LAYER_OPERATION:
      this.fireLayerOperation(cmd, state);
    break;
    case CommandKind.BATCH_OPERATION:
      this.fireBatchOperation(cmd, state);
    break;
    case CommandKind.CONTAINER_OPERATION:
      this.fireContainerOperation(cmd, state);
    break;
  };
}
@param {Command} cmd
@param {Boolean} state