private String getDataProvider(String type, String propertiesfilePath) {
        String dataProvider = null;
        try (BufferedReader br = new BufferedReader(new FileReader(propertiesfilePath))) {
            String line = br.readLine();
            while (line != null) {
                if (line.startsWith("dataProvider." + type + ".type=")) {
                    dataProvider = line.replaceAll("dataProvider." + type + ".type=", "");
                }
                line = br.readLine();
            }
        } catch (IOException e) {
            logger.error(TECHNICAL_IO_EXCEPTION, e.getMessage(), e);
        }
        return dataProvider;
    }
private String getDataProvider ( String type , String propertiesfilePath ) { String dataProvider = null ; try ( BufferedReader br = new BufferedReader ( new FileReader ( propertiesfilePath ) ) ) { String line = br . readLine ( ) ; while ( line != null ) { if ( line . startsWith ( "dataProvider." + type + ".type=" ) ) { dataProvider = line . replaceAll ( "dataProvider." + type + ".type=" , "" ) ; } line = br . readLine ( ) ; } } catch ( IOException e ) { logger . error ( TECHNICAL_IO_EXCEPTION , e . getMessage ( ) , e ) ; } return dataProvider ; }
@param type
@param propertiesfilePath
@return