Class<?> c;
try {
if (functionName.getLocalPart().equals("lookupXref")) {
String innerClassName = "oracle.tip.xref.xpath.XRefFunctions$LookupXRef";
XRefFunctions oc = new XRefFunctions();
Class[] innerClasses = oc.getClass().getClasses();
for(int i=0;i<innerClasses.length;i++){
if(innerClasses[i].getName().equals(innerClassName)){
//The next line will dynamically create an instance of the inner class
return XPathFunctionFactory.createXPathFunction((IXPathFunction)innerClasses[i].getConstructor(new Class[]{oc.getClass()}).newInstance(new Object[]{oc}));
}
}
return null;
/* c = Class.forName(
"testClass",