System.out.println("MD added: " + mf.toString());
DataBus.logger.debug("MetaField added: " + mf.toString());
    public MetaData loadMetaData() {        MetaData data = new MetaData();                try {            String sql =                 "SELECT * FROM Fld " +                "LEFT JOIN Fldtype ON Fld.FldFldtypeId = Fldtype.FldtypeId " +                "LEFT JOIN Ent ON Fld.FldEntId = Ent.EntId;";            ResultSet result =                 dbConnection.executeQuery(sql);                            while (result.next()) {                MetaEntity me =                     new MetaEntity(result.getString("EntName"));                MetaField mf =                     new MetaField(result.getString("FldName"), me);                                mf.setHidden(                    result.getInt("FldHidden") == 0 ? false: true                );                mf.setLength(result.getInt("FldLength"));                mf.setMandatory(                    result.getInt("FldMandatory") == 0 ? false: true                );                mf.setType(result.getInt("FldtypeId"));                                switch(mf.getType()) {                    case(MetaField.VARCHAR):                    case(MetaField.TEXT):                        mf.setDefaultValue(result.getString("FldDefault"));                        break;                    case(MetaField.DATE):                        break;                    case(MetaField.INT):                        mf.setDefaultValue(                            new Integer(result.getInt("FldDefault"))                        );                        break;                }                data.addEntity(me);                data.addField(mf);                System.out.println("MD added: " + mf.toString());            }        } catch (Exception e) {            DataBus.logger.fatal("Could not load MetaData.");            throw new InternalError("Could not load MetaData.");        }        DataBus.logger.info("MetaData loaded.");        return data;    }