*/
public Node getNode(int nodeType, ContextManager cm)
throws StandardException
{
ClassInfo ci = nodeCi[nodeType];
Class nodeClass = null;
if (ci == null)
{
String nodeName = nodeName(nodeType);
try
{
nodeClass = Class.forName(nodeName);
}
catch (ClassNotFoundException cnfe)
{
if (SanityManager.DEBUG)
{
SanityManager.THROWASSERT("Unexpected ClassNotFoundException",
cnfe);
}
}
ci = new ClassInfo(nodeClass);
nodeCi[nodeType] = ci;
}
QueryTreeNode retval = null;
try
{
retval = (QueryTreeNode) ci.getNewInstance();
//retval = (QueryTreeNode) nodeClass.newInstance();
}
catch (Exception iae)
{
if (SanityManager.DEBUG)