add code to support display-legacy which has no QServiceUtils.h

Change-Id: I9d3f25c4072df42d0757b5e2d66b1b0f742bf9bd