How to call hook method from another hook?How to call hook method from another hook?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=748829282024-03-28T23:35:49Z2024-03-28T23:35:49ZHow to call hook method from another hook?S Hhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=748829272016-06-03T05:47:11Z2016-06-03T05:47:11ZHi All,<br /><br />https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/custom-java-tools-in-the-script-engine<br /><br />I have created one hook follow the above article. I can then call it in my freemarker template using<br /><#assign myUtil=utilLocator.findUtil("script-utils-hook", "com.liferay.sample.ScriptUtil")/><br />${myUtil.operationOne()}<br />This is working fine.<br /><br />But I also have one question, if I create another hook, can I call myUtil.operationOne() in the new hook class? <br />I tried to write the code like <br />com.liferay.portal.template.UtilLocator.getInstance().findUtil("script-utils-hook", "com.liferay.sample.ScriptUtil"), it is not working. Is there any way to do thi