class ThreadsafeModel implements Model {

    @Override
    public Model addAllAttributes(Collection<?> attributeValues) {
        return withWriteLock(() -> model.addAllAttributes(attributeValues));
    }

      ThreadsafeModel(Model model);

}