List staticImports = context.getStaticImports();
Iterator it = staticImports.iterator();
while (it.hasNext())
{
StaticImport sImport = (StaticImport) it.next();
InvocableFunction func = sImport.getFunction(functionName, args);
if (func != null)
{
return func.invoke(null, args);
}
}
//lastly, throw exception
throw new NoSuchMethodException("Method " + methodName + " not found for the Processor");
}