public static Properties readPropertyFileFromFileSystem(final File propertyFileLocation) throws ConfigurationException {
  final Properties fileProperties=new Properties();
  try {
    final InputStream inputStream=new FileInputStream(propertyFileLocation);
    fileProperties.load(inputStream);
    inputStream.close();
  }
 catch (  IOException e) {
    throw new ConfigurationException("Cannot load the properties file",e);
  }
  return fileProperties;
}

public static Properties readPropertyFileFromFileSystem ( final File propertyFileLocation ) throws ConfigurationException { final Properties fileProperties = new Properties ( ) ; try { final InputStream inputStream = new FileInputStream ( propertyFileLocation ) ; fileProperties . load ( inputStream ) ; inputStream . close ( ) ; } catch ( IOException e ) { throw new ConfigurationException ( "Cannot load the properties file" , e ) ; } return fileProperties ; }
reads a property file into a properties object .
