public boolean fetchEnvironmentDetails() {

		try {
		    //int iVersion = -1;
		    int iEnvironment = -1;
		    boolean bFlag = false;
			
		    /*//Get the Column Index for the VERSION Column
		    iVersion = fGetColumnIndex(Environment.get("ENVIRONMENTXLSPATH"), "ENVIRONMENTS", "VERSION");
		    
		    //Check if the index value is proper
		    if (iVersion == -1 ){
		    	System.out.println("Failed to find the Version Column in the file " + Environment.get("ENVIRONMENTXLSPATH"));
		    	return false;
		    }*/

		    //Get the Column Index for the ENVIRONMENT Column
		    iEnvironment = fGetColumnIndex(enviromentsPath, "ENVIRONMENTS", "ENVIRONMENT");
		    
		    //Check if the index value is proper
		    if (iEnvironment == -1 ){
		    	System.out.println("Failed to find the Environment Column in the file " + enviromentsPath);
		    	return false;
		    }
		    
			//Create the FileInputStream obhect			
			FileInputStream file = new FileInputStream(new File(enviromentsPath));		     
		    //Get the workbook instance for XLS file 
		    HSSFWorkbook workbook = new HSSFWorkbook(file);
		 
		    //Get first sheet from the workbook
		    HSSFSheet sheet = workbook.getSheet("ENVIRONMENTS");
		    
		    //Get the Number of Rows
		    int iRowNum = sheet.getLastRowNum();
		    
		    //Get the Column count
		    int iColCount = sheet.getRow(0).getLastCellNum();
		    
		    for (int iRow = 0; iRow <= iRowNum; iRow++)
		    {
	            //Check if the version and the envioronment value is matching
	            //String strVersion = sheet.getRow(iRow).getCell(iVersion).getStringCellValue().trim().toUpperCase();
	            String strEnvironment = sheet.getRow(iRow).getCell(iEnvironment).getStringCellValue().trim().toUpperCase();
	            //Currently checking only on the basis of envrionment
	            if (!strEnvironment.equals(Environment.get("ENV_CODE")))			            	
	            {
	            	continue;
	            }
	            
	            //Set the flag value to true
	            bFlag = true;
	            String strKey = "";
	            String strValue = "";
		        //Loop through all the columns
		        for (int iCell = 0; iCell < iColCount; iCell ++ )
		        {
                    //Put the Details in Environment Hashmap
		            strKey = sheet.getRow(0).getCell(iCell).getStringCellValue().trim().toUpperCase();
		            
	        		//Fetch the value for the Header Row
	        		if (sheet.getRow(iRow).getCell(iCell, org.apache.poi.ss.usermodel.Row.CREATE_NULL_AS_BLANK) == null)
	        		{
	        			strValue = "";
	        		}else{
	        			strValue = sheet.getRow(iRow).getCell(iCell).getStringCellValue();
	        		}

	        		Environment.put(strKey.trim(), strValue.trim());
		        }
		        break;
		    }
		    //Close the file
		    file.close();

		    //If bFlag is true
		    if (bFlag == false)
		    {
		    	System.out.println("Environment Code " + Environment.get("ENV_CODE") + " not found in the Environment xls");
		    	return false;
		    }

		    return true;
		     
		} catch (FileNotFoundException e) {
		    e.printStackTrace();
		    return false;
		} catch (IOException e) {
		    e.printStackTrace();
		    return false;
		}
	}