private void init() {

        try {
            Element existing = editor.getXMLElementByString("/MLP_Save/MapZone[@ID='0']/GameObjects/Pony_Objects/Object[@ID='" + id + "']");
            Element bluePrintExisting = editor.getXMLElementByString("/MLP_Save/MapZone[@ID='0']/GameObjects/Pony_Objects/Object[@ID='" + blueprintId + "']");
            if(existing != null) {
                this.add.setSelected(true);
                this.add.setEnabled(false);
            }

            if(bluePrintExisting == null) {
                this.add.setEnabled(false);
            }

        } catch(XPathExpressionException e) {
            e.printStackTrace();
        }
    }