Prototype hobjectProto = getPrototype ("hopobject");   for (Iterator i = prototypes.values().iterator(); i.hasNext(); ) { Prototype proto = (Prototype) i.next(); DbMapping dbm = proto.getDbMapping (); dbm.update ();  String parentName = dbm.getExtends (); if (parentName == null) proto.setParentPrototype (hobjectProto); else proto.setParentPrototype (getPrototype (parentName)); }
    public void createPrototypes () {        // loop through directories and create prototypes        checkFiles ();        // check if standard prototypes have been created        // if not, create them.        for (int i=0; i<standardTypes.length; i++) {            String pname = standardTypes[i];            if (prototypes.get (pname) == null) {                Prototype proto = new Prototype (pname, app);                registerPrototype (pname, new File (appDir, pname), proto);            }        }        Prototype hobjectProto = getPrototype ("hopobject");        // loop through freshly created prototypes and rewire them,        // i.e. establish connections between them (inherit, collection etc.)        for (Iterator i = prototypes.values().iterator(); i.hasNext(); ) {            Prototype proto = (Prototype) i.next();            DbMapping dbm = proto.getDbMapping ();            dbm.update ();            // set parent prototype            String parentName = dbm.getExtends ();            if (parentName == null)                proto.setParentPrototype (hobjectProto);            else                proto.setParentPrototype (getPrototype (parentName));        }    }