String baseDbType = bundle.getString("extends");
String baseDbType = bundle.getString("extends").trim();
    private static Properties getDbProperties(String dbType, StringBuffer loadedFrom) throws IOException {        ResourceBundle bundle = null;        try {            File propertiesFile = new File(dbType);            bundle = new PropertyResourceBundle(new FileInputStream(propertiesFile));            loadedFrom.append(propertiesFile.getAbsolutePath());        } catch (FileNotFoundException notFoundOnFilesystemWithoutExtension) {            try {                File propertiesFile = new File(dbType + ".properties");                bundle = new PropertyResourceBundle(new FileInputStream(propertiesFile));                loadedFrom.append(propertiesFile.getAbsolutePath());            } catch (FileNotFoundException notFoundOnFilesystemWithExtensionTackedOn) {                try {                    bundle = ResourceBundle.getBundle(dbType);                    loadedFrom.append("[" + getLoadedFromJar() + "]" + File.separator + dbType + ".properties");                } catch (Exception notInJarWithoutPath) {                    try {                        String path = SchemaSpy.class.getPackage().getName() + ".dbTypes." + dbType;                        path = path.replace('.', '/');                        bundle = ResourceBundle.getBundle(path);                        loadedFrom.append("[" + getLoadedFromJar() + "]/" + path + ".properties");                    } catch (Exception notInJar) {                        notInJar.printStackTrace();                        notFoundOnFilesystemWithExtensionTackedOn.printStackTrace();                        throw notFoundOnFilesystemWithoutExtension;                    }                }            }        }        Properties properties;        try {            String baseDbType = bundle.getString("extends");            properties = getDbProperties(baseDbType, new StringBuffer());        } catch (MissingResourceException doesntExtend) {            properties = new Properties();        }        return add(properties, bundle);    }