class EtagGenerator implements EtagGeneratorInterface {

    @Override
    public String getEtag(int primaryKey) {
        return DigestUtils.md5DigestAsHex(ByteBuffer.allocate(10).putInt(primaryKey).put(secret).array());
    }

}