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 ) ; } }
Gets the file as stream .