- Box ret = new Box(args.length() == 0 || args.elementAt(0) == null ? "box" : args.elementAt(0).toString(),
- Template.defaultImportList, callback);
+ Box ret = new Box();
+ if (!(args.length() == 0 || args.elementAt(0) == null))
+ Template.getTemplate(args.elementAt(0).toString(),
+ Template.defaultImportList).apply(ret, null, null, callback, 0, 1);