LPS-48072 It needs to be the id not the class

Rebased of https://github.com/brianchandotcom/liferay-plugins/pull/3383/files