src/main/java/com/mxgraph/io/mxObjectCodec.java
public boolean processInclude(mxCodec dec, Node node, Object into)
	{
		if (node.getNodeType() == Node.ELEMENT_NODE
				&& node.getNodeName().equalsIgnoreCase("include"))
		{
			String name = ((Element) node).getAttribute("name");

			if (name != null)
			{
				try
				{
					Node xml = mxUtils.loadDocument(
							mxObjectCodec.class.getResource(name).toString())
							.getDocumentElement();

					if (xml != null)
					{
						dec.decode(xml, into);
					}
				}
				catch (Exception e)
				{
					log.log(Level.FINEST, "Cannot process include: " + name, e);
				}
			}

			return true;
		}

		return false;
	}
/**
	 * Returns true if the given node is an include directive and executes the
	 * include by decoding the XML document. Returns false if the given node is
	 * not an include directive.
	 * 
	 * @param dec Codec that controls the encoding/decoding process.
	 * @param node XML node to be checked.
	 * @param into Optional object to pass-thru to the codec.
	 * @return Returns true if the given node was processed as an include.
	 */
Returns true if the given node is an include directive and executes the
include by decoding the XML document. Returns false if the given node is
not an include directive.

@param dec Codec that controls the encoding/decoding process.
@param node XML node to be checked.
@param into Optional object to pass-thru to the codec.
@return Returns true if the given node was processed as an include.
Returns true if the given node is an include directive and executes the include by decoding the XML document . Returns false if the given node is not an include directive . @param dec Codec that controls the encoding / decoding process . @param node XML node to be checked . @param into Optional object to pass - thru to the codec . @return Returns true if the given node was processed as an include .
public boolean processInclude(mxCodec dec, Node node, Object into)
	{
		if (node.getNodeType() == Node.ELEMENT_NODE
				&& node.getNodeName().equalsIgnoreCase("include"))
		{
			String name = ((Element) node).getAttribute("name");
			if (name != null)
			{
				try
				{
					Node xml = mxUtils.loadDocument(
							mxObjectCodec.class.getResource(name).toString())
							.getDocumentElement();
					if (xml != null)
					{
						dec.decode(xml, into);
					}
				}
				catch (Exception e)
				{
					log.log(Level.FINEST, "Cannot process include: " + name, e);
				}
			}
			return true;
		}
		return false;
	}
public boolean processInclude ( mxCodec dec , Node node , Object into ) { if ( node . getNodeType ( ) == Node . ELEMENT_NODE && node . getNodeName ( ) . equalsIgnoreCase ( "include" ) ) { String name = ( ( Element ) node ) . getAttribute ( "name" ) ; if ( name != null ) { try { Node xml = mxUtils . loadDocument ( mxObjectCodec . class . getResource ( name ) . toString ( ) ) . getDocumentElement ( ) ; if ( xml != null ) { dec . decode ( xml , into ) ; } } catch ( Exception e ) { log . log ( Level . FINEST , "Cannot process include: " + name , e ) ; } } return true ; } return false ; }
Returns true if the given node is an include directive and executes the
 include by decoding the XML document.
Returns true if the given node is an include directive and executes the include by decoding the XML document .