protected static void load(String resource) { load(resource, false);
protected static void load(String resource, boolean outputPDL) { if (s_loadedPDLResources.contains(resource)) { return; }  s_loadedPDLResources.add(resource);  String shadow = resource.substring(0, resource.lastIndexOf('.')); String ext = resource.substring(resource.lastIndexOf('.') + 1, resource.length()); shadow = shadow + "." + DbHelper.getDatabaseSuffix() + "." + ext;  try { PDL m = new PDL();  String[] resources = new String[] {shadow, resource}; for (int i = 0; i < resources.length; i++) { if (m.getClass().getClassLoader().getResourceAsStream (resources[i]) != null) { m.loadResource(resources[i]); s_loadedPDLResources.add(resources[i]); break; } }  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);
    protected static void load(String resource) {        load(resource, false);    }