```var engine = CFMLEngineFactory.getInstance(); v...
# lucee
i
Copy code
var engine = CFMLEngineFactory.getInstance();
var creationUtil = engine.getCreationUtil();
var pageContext = engine.getThreadPageContext();
var cfc = creationUtil.createComponentFromName(pageContext, "some.component.path.and.Name");
In java you used to be able to do this to get the cfc (based on this post - https://dev.lucee.org/t/how-do-i-access-cfcproxy-in-lucee/1996/3). It no longer likes .getInstance() and instead wants getInstance(ServletConfig), is there a easy way to do this or should I just create a new ServletConfig from scratch? Cheers! 🤜🤛