code: public void loadProperties(File contentDir)  {
      String resourceFile = null;
      if(contentDir.exists() && contentDir.isDirectory()) {
        File propFile = new File(contentDir, REALM_FILE_NAME);
        if(propFile.exists() && propFile.canRead()) {
          resourceFile = propFile.getAbsoluteFile().getAbsolutePath();
        }
      } else if(contentDir.exists() && contentDir.isFile() && contentDir.canRead()) {
        resourceFile = contentDir.getAbsoluteFile().getAbsolutePath();
      }
      if(StringUtils.isNotBlank(resourceFile)) {
        this.setResourcePath("file:"+resourceFile);
        this.destroy();
        this.init();
      }
    }
docs: loads a properties file named {@link REALM_FILE_NAME} in the directory passed in.