code: private void load() {
          InputStream propertiesInputStream = null;
          try {
              propertiesInputStream = propertiesInputStream();
              if (propertiesInputStream == null) {
                  throw new IllegalArgumentException("The properties file could not be loaded!");
              }
              properties.load(propertiesInputStream);
          } catch (IOException e) {
              LOGGER.error("Can't load properties", e);
          } finally {
              try {
                  if (propertiesInputStream != null) {
                      propertiesInputStream.close();
                  }
              } catch (IOException e) {
                  LOGGER.error("Can't close the properties InputStream", e);
              }
          }
      }
docs: Load {@link Properties} from the resolved {@link InputStream}