public VelocimacroProxy get(String vmName, String ns)
{
if (UsingNamespaces(ns))
{
Hashtable local = GetNamespace(ns, false);
/*
* if we have macros defined for this template
*/
if (local != null)
{
MacroEntry me = (MacroEntry) local[vmName];
if (me != null)
{
return me.CreateVelocimacro(ns);
}
}
}
/*
* if we didn't return from there, we need to simply see
* if it's in the global namespace
*/
//UPGRADE_NOTE: Variable me was renamed because block definition does not hide it. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1008"'
MacroEntry me2 = (MacroEntry) GetNamespace(GLOBAL_NAMESPACE)[vmName];
if (me2 != null)
{
return me2.CreateVelocimacro(ns);
}
return null;
}