@Override public void executionUnitImported(final ExecutionUnit process,final Element element){
  NodeList children=element.getChildNodes();
  children=element.getChildNodes();
  for (int i=0; i < children.getLength(); i++) {
    Node child=children.item(i);
    if (child instanceof Element) {
      Element backgroundElement=(Element)child;
      if (XML_TAG_BACKGROUND.equals(backgroundElement.getTagName())) {
        String xStr=backgroundElement.getAttribute(XML_ATTRIBUTE_X_POSITION);
        String yStr=backgroundElement.getAttribute(XML_ATTRIBUTE_Y_POSITION);
        String wStr=backgroundElement.getAttribute(XML_ATTRIBUTE_WIDTH);
        String hStr=backgroundElement.getAttribute(XML_ATTRIBUTE_HEIGHT);
        String imgLocStr=backgroundElement.getAttribute(XML_ATTRIBUTE_LOCATION);
        try {
          int xLoc=Integer.parseInt(xStr);
          int yLoc=Integer.parseInt(yStr);
          int wLoc=Integer.parseInt(wStr);
          int hLoc=Integer.parseInt(hStr);
          ProcessBackgroundImage bgImg=new ProcessBackgroundImage(xLoc,yLoc,wLoc,hLoc,imgLocStr,process);
          setBackgroundImage(bgImg);
        }
 catch (        NullPointerException|IllegalArgumentException e) {
        }
      }
    }
  }
}

@ Override public void executionUnitImported ( final ExecutionUnit process , final Element element ) { NodeList children = element . getChildNodes ( ) ; children = element . getChildNodes ( ) ; for ( int i = 0 ; i < children . getLength ( ) ; i ++ ) { Node child = children . item ( i ) ; if ( child instanceof Element ) { Element backgroundElement = ( Element ) child ; if ( XML_TAG_BACKGROUND . equals ( backgroundElement . getTagName ( ) ) ) { String xStr = backgroundElement . getAttribute ( XML_ATTRIBUTE_X_POSITION ) ; String yStr = backgroundElement . getAttribute ( XML_ATTRIBUTE_Y_POSITION ) ; String wStr = backgroundElement . getAttribute ( XML_ATTRIBUTE_WIDTH ) ; String hStr = backgroundElement . getAttribute ( XML_ATTRIBUTE_HEIGHT ) ; String imgLocStr = backgroundElement . getAttribute ( XML_ATTRIBUTE_LOCATION ) ; try { int xLoc = Integer . parseInt ( xStr ) ; int yLoc = Integer . parseInt ( yStr ) ; int wLoc = Integer . parseInt ( wStr ) ; int hLoc = Integer . parseInt ( hStr ) ; ProcessBackgroundImage bgImg = new ProcessBackgroundImage ( xLoc , yLoc , wLoc , hLoc , imgLocStr , process ) ; setBackgroundImage ( bgImg ) ; } catch ( NullPointerException | IllegalArgumentException e ) { } } } } }
extracts port spacings from the xml element .
