code: protected Document createSingleElementDocument(String namespaceUri, String namespacePrefix, String name,
  			Cardinality cardinality) {
  		Document doc = mDocumentBuilder.newDocument();
  		String qualifiedName = namespacePrefix
  				+ ":" + name;
  		Element e = doc.createElementNS(namespaceUri, qualifiedName);
  		e.setAttributeNS(null, "ifmap-cardinality", cardinality.toString());
  		doc.appendChild(e);
  		return doc;
  	}
docs: Creates a metadata document with a single element and given namespace information.
  
  @param namespaceUri
  URI of the namespace of the metadata document
  @param namespacePrefix
  prefix of the namespace of the metadata document
  @param name
  value of the root element of the metadata document
  @param cardinality
  the cardinality of the metadata document
  @return a {@link Document} instance representing the metadata object