if (com.arsdigita.db.Initializer.getDatabase() == com.arsdigita.db.Initializer.POSTGRES) {
if (com.arsdigita.db.DbHelper.getDatabase() == com.arsdigita.db.DbHelper.DB_POSTGRES) {
    protected static void load(String resource, boolean outputPDL) {        if (s_loadedPDLResources.contains(resource)) {            return;        }        s_loadedPDLResources.add(resource);        String extraResource = null;        if (resource.indexOf("testpdl") > -1) {            String prefix = resource.substring                (0, resource.indexOf("testpdl") + 8);            String suffix = resource.substring(resource.indexOf("testpdl") + 7);            resource = prefix + "default" + suffix;            if (com.arsdigita.db.Initializer.getDatabase() ==                com.arsdigita.db.Initializer.POSTGRES) {                extraResource = prefix + "postgres" + suffix;            } else {                extraResource = prefix + "oracle-se" + suffix;            }        }        try {            PDL m = new PDL();            if (extraResource != null &&                m.getClass().getClassLoader().getResourceAsStream                (extraResource) != null) {                m.loadResource(extraResource);                s_loadedPDLResources.add(extraResource);            }            m.loadResource(resource);            m.generateMetadata(MetadataRoot.getMetadataRoot());            String outputPDLDir = null;            if (outputPDL) {                try {                    PDLOutputter.writePDL(MetadataRoot.getMetadataRoot(),                                          new java.io.File(outputPDLDir));                } catch (java.io.IOException e) {                    System.err.println                        ("There was a problem generating debugging output");                }            }        } catch (Exception e) {            e.printStackTrace();            throw new Error(e.getMessage());        }        s_loadedPDLResources.add(resource);    }