private void writeExamples() throws Exception {
		int i;
		Vector<String> v = m_parent.getTagTextVector(m_doc, Constants.TAG_EXAMPLE, true);
		Vector<String> vc = m_parent.getTagTextVector(m_doc, Constants.TAG_EXAMPLE_CODE, true);
		Vector<String> vd = m_parent.getTagTextVector(m_doc, Constants.TAG_EXAMPLE_DESCRIPTION, true);
		if (vc.size() != vd.size()) {
			//throw new Exception("Size of ant.example.code(" + vc.size() + ") and ant.example.description(" + vd.size() + ") do not match for Task" + m_doc.qualifiedName() + ".\n Either all or none of the tags must be localized.");
			logger.log(Level.WARNING, "Size of ant.example.code({0}) and ant.example.description({1}) do not match for Task{2}.\n Either all or none of the tags must be localized. Fallback in progress.", new Object[]{vc.size(), vd.size(), m_doc.qualifiedName()});
			/*
			vc = m_parent.getTagTextVector(m_doc, Constants.TAG_EXAMPLE_CODE, false);
			vd = m_parent.getTagTextVector(m_doc, Constants.TAG_EXAMPLE_DESCRIPTION, false);
			
			if (vc.size()!=vd.size()) {
				logger.warning("examples doesn't match description");
			}*/
		}
		if (v.size() == 0 && vc.size() == 0) {
			//NO EXAMPLES
			return;
		}
		write(m_stream, "task-examples-header.template");

		for (i = 0; i < v.size(); i++) {
			writeSingleExample(v.elementAt(i));
		}
		for (i = 0; i < Math.max(vc.size(),vd.size()); i++) {
			if (i<vc.size() && i<vd.size()) 
				writeSingleDetailedExample(vc.elementAt(i), vd.elementAt(i));
			else if (i<vc.size())
				writeSingleDetailedExample(vc.elementAt(i), " <b>missing example description</b> ");
			else
				writeSingleDetailedExample(" <b>missing example</b> ",vd.elementAt(i));			
		}
		write(m_stream, "task-examples-footer.template");
	}