Moved accessing mw config variable out of entityview

Change-Id: I4a7f50bf708866e71dbca29a32db841102112921
Merge "Moved accessing mw config variable out of entityview"