replace the use of System.lineSeparator() by System.getProperty("line.separator") as the former is Java 7 specific