Instead of the function javaNew we could provide a component named Java that provides a method “instance” and “cast”. This component could be in the package org.lucee… That is auto imported into every template, so you could do the following in your code
Java::instance(instName);
We would still support javaNew but only as a hidden function, used by this component.