code: static InputStream getFileAsStream(File resourceFile) throws ConfigurationException {
          try {
              return new FileInputStream(resourceFile);
          } catch (FileNotFoundException e) {
              Log.error("File Resource could not be resolved. Given Resource:" + resourceFile, e);
              throw new ConfigurationException("File Resource could not be resolve", FILE_NOT_FOUND_EXCEPTION_ID,e);
          }
      }
docs: Gets the file as stream.
  
  @param resourceFile
  the resource file
  @return the file as stream
  @throws ConfigurationException