code: private static Properties loadSecretProperties() throws IOException {
          Properties properties = new Properties();
          InputStream propertiesStream = Server.class.getClassLoader().getResourceAsStream("secrets.properties");
          if (propertiesStream == null) {
              // Fallback to file access in the case of running from certain IDEs.
              File buildPropertiesFile = new File("src/main/resources/secrets.properties");
              if (buildPropertiesFile.exists()) {
                  properties.load(new FileReader(buildPropertiesFile));
              } else {
                  buildPropertiesFile = new File("samples/servlet-sample/src/main/resources/secrets.properties");
                  if (buildPropertiesFile.exists()) {
                      properties.load(new FileReader(buildPropertiesFile));
                  } else {
                      throw new IllegalStateException("Could not find secrets.properties");
                  }
              }
          } else {
              properties.load(propertiesStream);
          }
          return properties;
      }
docs: Loads the application's secrets.