private void addAttributeForElement(DocumentFactory factory,
			Element idElement, EntityVaribleContainer container,
			AnnotationContentFetchHelper fetchHelper) {
		idElement.add(factory.createAttribute(idElement, "name",
				container.getVariableName()));

		if (container.getVariableType() != null) {
			idElement.add(factory.createAttribute(idElement, "type",
					container.getVariableType()));
		}
		if (container.getVariableRefClass() != null) {
			idElement.add(factory.createAttribute(idElement, "className",
					container.getVariableRefClass()));
		}
		if (container.getAnnotation() == null) {
			idElement.add(factory.createAttribute(idElement, "column",
					container.getVariableName()));
		} else {

			Map<String, String> configValues = fetchHelper
					.getAnnotationContent(container.getAnnotation());
			// System.out.println("注解的详细信息： " + configValues);
			Set<String> keys = configValues.keySet();
			Iterator<String> iterator = keys.iterator();
			while (iterator.hasNext()) {
				String configName = iterator.next();
				String configValue = configValues.get(configName).replace(":",
						"=");
				// System.out.println(configName + " : " + configValue);
				idElement.add(factory.createAttribute(idElement, configName,
						configValue));

				// System.out.println(idElement.asXML());
			}
			if (configValues.get("column").equals("")) {
				idElement.add(factory.createAttribute(idElement, "column",
						container.getVariableName()));
			}

		}
	}