service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/NameSpaceUtil.java
public static Source setNameSpaceOnXmlStream(final InputStream in, final String nameSpace)
			throws JDOMException, IOException {
		final SAXBuilder sb = new SAXBuilder(new XMLReaderSAX2Factory(false));
		final Document doc = sb.build(in);
		doc.getRootElement().setNamespace(Namespace.getNamespace(nameSpace));
		return new JDOMSource(doc);
	}
public static Source setNameSpaceOnXmlStream(final InputStream in, final String nameSpace)
			throws JDOMException, IOException {
		final SAXBuilder sb = new SAXBuilder(new XMLReaderSAX2Factory(false));
		final Document doc = sb.build(in);
		doc.getRootElement().setNamespace(Namespace.getNamespace(nameSpace));
		return new JDOMSource(doc);
	}
Sets the name space on xml stream.

@param in        the in
@param nameSpace the name space
@return the source
@throws JDOMException the JDOM exception
@throws IOException   Signals that an I/O exception has occurred.