Restored compatiblity to mw 1.22

commented out getAfterPortlet to provide compatibility to mw 1.22

Change-Id: I04c7310ba2d1bde65aa320385eb94c92579ab257
Merge "Restored compatiblity to mw 1.22"