async findByCoreId(coreId: string): Promise<Rule | undefined> {
    return this.connection
      .getRepository(RuleDBEntity)
      .findOne({ where: { coreId } })
      .then((rule) => rule?.toDomain());