var objs = fl.findObjectInDocByType("instance", doc);
Error: findObjectInDocByType: Argument number1 is invalid.