Map<String, CommandProxy> proxyMap = new HashMap<String, CommandProxy>();
if (function.getClass().isArray())
{
for (Object f : ((Object[]) function))
{
CommandProxy target = new CommandProxy(context, reference, f.toString());
proxyMap.put(f.toString(), target);
processor.addCommand(scope.toString(), target, f.toString(), rank);
commands.add(target);
}
}
else
{
CommandProxy target = new CommandProxy(context, reference, function.toString());
proxyMap.put(function.toString(), target);
processor.addCommand(scope.toString(), target, function.toString(), rank);
commands.add(target);
}
proxies.put(reference, proxyMap);