class LegacyIndexer implements Indexer {

    @Override
    public void checkId(Index.Key key) throws IOException {
        if (WorkspaceFamily.UTIL_CAL.equals(key.getFamily())) {
            if (!key.getId().equals("Calendars")) {
                throw new IOException("Only one calendar file is allowed");
            }
        } else if (WorkspaceFamily.UTIL_VAR.equals(key.getFamily())) {
            if (!key.getId().equals("Variables")) {
                throw new IOException("Only one variable file is allowed");
            }
        }
    }

      LegacyIndexer(Path file);

}