protected Element createTransitionElement(Document document,
			Transition transition) {
		Element te = super.createTransitionElement(document, transition);
		TMTransition t = (TMTransition) transition;
		TuringMachine tm = (TuringMachine) t.getFromState().getAutomaton();
		// Add the characterizing strings for this transition.
		Map attr = new HashMap();
		for (int i = 0; i < tm.tapes(); i++) {
			if (tm.tapes() > 1)
				attr.put(TRANSITION_TAPE_NAME, "" + (i + 1));
			String read = t.getRead(i), write = t.getWrite(i);
			if (read.equals(TMTransition.BLANK))
				read = "";
			if (write.equals(TMTransition.BLANK))
				write = "";
			te.appendChild(createElement(document, TRANSITION_READ_NAME, attr,
					read));
			if(t.isBlockTransition()){
				te.setAttribute(IS_BLOCK, "" + "true");
				return te;
			}
			te.appendChild(createElement(document, TRANSITION_WRITE_NAME, attr,
					write));
			te.appendChild(createElement(document, TRANSITION_MOVE_NAME, attr,
					t.getDirection(i)));
		
		}
		return te;
	}