// The finally clause below can result in the
// application exiting if there are no other
// effigies open. We check for that condition,
// and report the error here. Otherwise, we
// pass the error to the caller.
ModelDirectory dir = (ModelDirectory) effigy
.topEffigy().getContainer();
List effigies = dir.entityList(Effigy.class);
// We might get to here if we are running a
// vergil with a model specified as a command