LPS-33393 Fix compilation problem

@robertodiaz Could you also review it? See error log: http://ci.liferay.org.es/jenkins/job/liferay-plugins-compile-jdk6/2053/console