@Override
    public Long getMaxId() {
        if (currentId == 0) {
            return null;
        }
        return currentId;
    }
This id is used to emulate the primary key on the database.
stroom-meta/stroom-meta-mock/src/main/java/stroom/meta/mock/MockMetaService.java