How I can override some Javascript function from Omnifaces?
<p>I want to override the Javascript function called from <code>o:highlight</code> component from Omnifaces. I see that the taglib calls the function <code>OmniFaces.Highlight</code> available here: </p>

<p><a href="https://github.com/omnifaces/omnifaces/blob/develop/src/main/resources/META-INF/resources/omnifaces/highlight.unminified.js" rel="nofollow noreferrer">https://github.com/omnifaces/omnifaces/blob/develop/src/main/resources/META-INF/resources/omnifaces/highlight.unminified.js</a></p>

<p>How I can override this function to use my own implementation?</p>

<p>The only way I see at this time is overriding the Java class <code>org.omnifaces.component.script.Highlight</code> to call another function name.</p>

<p>There are another way? I don't like to override all class content because in the next time I update the Omnifaces, I need to check if the class was changed.</p>