IntPair holderAndPosition = new IntPair(0,1);
try {
Holder targetHolder = thePlate.targetHolder();
targetHolder.setPlate(thePlate);
FileUtil.copy(tecanSettings.getProperty("workingListReferencePath"), tecanSettings.getProperty("workingListExportPath"));
SpecialFileWriter workListWriter = new SpecialFileWriter(tecanSettings.getProperty("workingListExportPath"), true);
workListWriter.write("Comment(\"Begin\");\n");
for (IngredientList aIngredientList : this) {
holderAndPosition = generateSubWorkingList(aIngredientList, holderAndPosition, tecanSettings, targetHolder, holderList, wasteHolder, workListWriter);
}
workListWriter.write("Comment(\"End\");\n");
workListWriter.close();
} catch (FileNotFoundException e) {
throw new RobotDriverException("Problem to access the File " + tecanSettings.getProperty("workingListReferencePath") +
" or the file" + tecanSettings.getProperty("workingListExportPath") + "\n" + "Details: " + e.getMessage());
} catch (IOException e) {
throw new RobotDriverException("Problem to access the File " + tecanSettings.getProperty("workingListReferencePath") +