throw EntityNotFoundException if entity was not found in getEntityDetails()