@Override
	public void sequence(String id, String sequence, String quality) {

		if ((sequence == null) || (sequence.length() == 0)) {
			if (behavior == EmptySequenceBehaviour.WRITE) {
				sequence = "";
				quality = "";
			} else if (behavior == EmptySequenceBehaviour.SKIP) {
				return;
			}
		}

		try {
			writer.writeSequence(id, sequence, quality);
		} catch (IOException e) {
			if (logger != null) {
				logger.log(Level.SEVERE, e.getMessage());
			} else {
				System.err.println("I/O error occurs writing output file.");
			}
		}
	}