@Override
	public List<CommandEntity> findCommandByLawnMowerIndex(LawnInformationVO information, int index) {
		if (information instanceof TextFileLawnInformationVO) {
			TextFileLawnInformationVO textFileInformation = (TextFileLawnInformationVO) information;

			// Reading from file
			setFileToRead(Paths.get(textFileInformation.getFilePath()));
			if (Files.exists(getFileToRead())) {
				try{
					setReader(Files.newBufferedReader(
							getFileToRead(), Charset.defaultCharset()));
					return processLines(index);
				} 
				catch (IOException exception) {
					if (getLogger().isErrorEnabled()) {
						getLogger()
								.error("Error while opening file " + getFileToRead(), exception);
					}
					throw new RuntimeException("Error while opening file", exception);
				}
				finally
				{
					if(getReader() != null)
					{
						try {
							getReader().close();
						} catch (IOException e) {
							if (getLogger().isErrorEnabled()) {
								getLogger()
										.error("Error while closing file " + getFileToRead(), e);
							}
							throw new RuntimeException("Error while closing file", e);
						}
					}
				}
			}
		}
		return null;
	}