class WhitelistDataAccess {

    static List<ByteBuffer> getSerializedUpdateValues(String role, String resource, Set<Permission> whitelistOperations)
    {
        Set<String> operations = whitelistOperations.stream()
                                                    .map(Enum::name)
                                                    .collect(Collectors.toSet());

        List<ByteBuffer> values = new ArrayList<>(3);
        values.add(SET_SERIALIZER.serialize(operations));
        values.add(ByteBufferUtil.bytes(role));
        values.add(ByteBufferUtil.bytes(resource));
        return values;
    }

    private  WhitelistDataAccess();

}