Buggy code:
public class AlertsManager { private static AlertsManager INSTANCE = new AlertsManager ( ) ; private MongoClient mongoClient ; private MongoDatabase db ; private MongoCollection < Document > coll1 ; private boolean onOff = false ; private int port ; private DateTime delayH ; private DateTime delayD ; private DateTime delayW ; private DateFormat df = new SimpleDateFormat ( "dd//MM//yyyy//HH:mm" ) ; private customBool Hourly = new customBool ( "Hourly" , false ) ; private customBool Daily = new customBool ( "Daily" , false ) ; private customBool Weekly = new customBool ( "Weekly" , false ) ; private String HourlyHour = "" ; private String DailyHour = "" ; private String WeeklyHour = "" ; private String IP = "" ; private String filePath = "" ; private String database = "" ; private String collection = "" ; private List < customBool > HDW = new ArrayList < customBool > ( ) ; private ScheduledFuture < ? > alertHandleH ; private ScheduledFuture < ? > alertHandleD ; private ScheduledFuture < ? > alertHandleW ; private ScheduledExecutorService scheduler ; private Mail mail ; private Alert alert ; private static final Logger LOGGER = Logger . getLogger ( AlertsManager . class . getName ( ) ) ; private AlertsManager ( ) { } public static AlertsManager getInstance ( ) { } public boolean getParameter ( ) throws IOException , ParseException { onOff = false ; filePath = System . getenv ( "DATAFARI_HOME" ) ; if ( ( filePath ) == null ) filePath = "//home//youp//workspaceTest//Servers//Datafari-config//datafari.properties" ; else <START_BUG> filePath += "tomcat//conf//datafari.properties" ; <END_BUG> String content ; String [ ] lines = new String [ 0 ] ; try { content = AlertsManager . readFile ( filePath , StandardCharsets . UTF_8 ) ; lines = content . split ( System . getProperty ( "line.separator" ) ) ; } catch ( IOException e1 ) { AlertsManager . LOGGER . error ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>reading<seq2seq4repair_space>the<seq2seq4repair_space>datafari.properties<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>Alerts<seq2seq4repair_space>Manager<seq2seq4repair_space>" , e1 ) ; throw e1 ; } for ( int i = 0 ; i < ( lines . length ) ; i ++ ) { if ( ( lines [ i ] . startsWith ( "ALERTS" ) ) && ( lines [ i ] . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) . equals ( "on" ) ) ) onOff = true ; else if ( lines [ i ] . startsWith ( "HOURLYDELAY" ) ) { try { delayH = new DateTime ( df . parse ( lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ) ) ; } catch ( ParseException e ) { AlertsManager . LOGGER . error ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>the<seq2seq4repair_space>Hourly<seq2seq4repair_space>Date,<seq2seq4repair_space>default<seq2seq4repair_space>value<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>used,<seq2seq4repair_space>AlertsManager" , e ) ; delayH = new DateTime ( df . parse ( "01//01//0001//00:00" ) ) ; } } else if ( lines [ i ] . startsWith ( "DAILYDELAY" ) ) { try { delayD = new DateTime ( df . parse ( lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ) ) ; } catch ( ParseException e ) { AlertsManager . LOGGER . error ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>the<seq2seq4repair_space>Daily<seq2seq4repair_space>Date,<seq2seq4repair_space>default<seq2seq4repair_space>value<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>used,<seq2seq4repair_space>AlertsManager" , e ) ; delayD = new DateTime ( df . parse ( "01//01//0001//00:00" ) ) ; } } else if ( lines [ i ] . startsWith ( "WEEKLYDELAY" ) ) { try { delayW = new DateTime ( df . parse ( lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ) ) ; } catch ( ParseException e ) { AlertsManager . LOGGER . error ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>the<seq2seq4repair_space>Weekly<seq2seq4repair_space>Date,<seq2seq4repair_space>default<seq2seq4repair_space>value<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>used,<seq2seq4repair_space>AlertsManager" , e ) ; delayW = new DateTime ( df . parse ( "01//01//0001//00:00" ) ) ; } } else if ( lines [ i ] . startsWith ( "HOST" ) ) IP = lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ; else if ( lines [ i ] . startsWith ( "PORT" ) ) port = Integer . parseInt ( lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ) ; else if ( lines [ i ] . startsWith ( "DATABASE" ) ) database = lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ; else if ( lines [ i ] . startsWith ( "COLLECTION" ) ) collection = lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ; else if ( lines [ i ] . startsWith ( "Hourly=" ) ) { Hourly . setBool ( true ) ; HourlyHour = lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ; } else if ( lines [ i ] . startsWith ( "Daily=" ) ) { Daily . setBool ( true ) ; DailyHour = lines [ i ] . replaceAll ( "(\\r|\\n)" , "" ) . substring ( ( ( lines [ i ] . indexOf ( "=" ) ) + 1 ) ) ; } else if ( lines [ i ] . startsWith ( "Weekly=" ) ) { Weekly . setBool ( true ) ;

Fix:
filePath += "//tomcat//conf//datafari.properties" ;