private Properties readProperties(final String propertiesFilePath) throws IOException {
  Properties properties=new Properties();
  File propsFile=new File(propertiesFilePath);
  FileInputStream fis=null;
  if (propsFile.exists()) {
    try {
      fis=new FileInputStream(propsFile);
      properties.load(fis);
    }
  finally {
      if (fis != null) {
        fis.close();
      }
    }
  }
  return properties;
}

private Properties readProperties ( final String propertiesFilePath ) throws IOException { Properties properties = new Properties ( ) ; File propsFile = new File ( propertiesFilePath ) ; FileInputStream fis = null ; if ( propsFile . exists ( ) ) { try { fis = new FileInputStream ( propsFile ) ; properties . load ( fis ) ; } finally { if ( fis != null ) { fis . close ( ) ; } } } return properties ; }
reads the properties from the properties file .
