IDE-1128

Changed the validate() method into compute() which fix the latest builded
sapphire breaking the liferay IDE build problem.