Any way that we can unit test this? Also, should this function really be in the preview processor model ?