code: protected static boolean loadDefaultConf(String packageName) throws ParseException {
  
        if (packageName.endsWith(".conf")) {
           return false;
        }
  
        packageName = packageName.replaceAll("\\$[0-9]+$", "");
  
  
        Resource defaultConf = new ClasspathResource((packageName.replaceAll("\\.",
                                                                             "/"
                                                                            ) + "/" + DEFAULT_CONFIG_FILE_NAME).trim(),
                                                     Config.getDefaultClassLoader()
        );
  
        // Go through each level of the package until we find one that
        // has a default properties file or we cannot go any further.
        while (!defaultConf.exists()) {
           int idx = packageName.lastIndexOf('.');
           if (idx == -1) {
              defaultConf = new ClasspathResource(packageName + "/" + DEFAULT_CONFIG_FILE_NAME,
                                                  Config.getDefaultClassLoader()
              );
              break;
           }
           packageName = packageName.substring(0, idx);
           defaultConf = new ClasspathResource(packageName.replaceAll("\\.", "/") + "/" + DEFAULT_CONFIG_FILE_NAME,
                                               Config.getDefaultClassLoader()
           );
        }
  
        if (defaultConf.exists()) {
           loadConfig(defaultConf);
           return true;
        }
  
  
        return false;
     }
docs: Load default conf.
  
  @param packageName the package name
  @return the boolean
  @throws ParseException the parse exception