Source:
public NodeContext(final GraphAdapter<?> parentGraph, final NodeAdapter<?> node) { this.node = node; this.nodeSize = new KVector(node.getSize()); treatAsCompoundNode = node.isCompoundNode() || node.getProperty(CoreOptions.INSIDE_SELF_LOOPS_ACTIVATE); sizeConstraints = node.getProperty(CoreOptions.NODE_SIZE_CONSTRAINTS); sizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS); portConstraints = node.getProperty(CoreOptions.PORT_CONSTRAINTS); portLabelsPlacement = node.getProperty(CoreOptions.PORT_LABELS_PLACEMENT); portLabelsNextToPort = portLabelsPlacement.contains(PortLabelPlacement.NEXT_TO_PORT_IF_POSSIBLE); portLabelsTreatAsGroup = node.getProperty(CoreOptions.PORT_LABELS_TREAT_AS_GROUP); nodeLabelPlacement = node.getProperty(CoreOptions.NODE_LABELS_PLACEMENT); nodeLabelsPadding = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.NODE_LABELS_PADDING); nodeLabelSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_LABEL_NODE); labelLabelSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_LABEL_LABEL); portPortSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_PORT_PORT); portLabelSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_LABEL_PORT); surroundingPortMargins = IndividualSpacings.getIndividualOrInherited( node, CoreOptions.SPACING_PORTS_SURROUNDING); labelCellSpacing = 2 * labelLabelSpacing; boolean symmetry = !sizeOptions.contains(SizeOptions.ASYMMETRICAL); nodeContainer = new StripContainerCell(Strip.VERTICAL, symmetry, 0); nodeContainerMiddleRow = new StripContainerCell(Strip.HORIZONTAL, symmetry, 0); nodeContainer.setCell(ContainerArea.CENTER, nodeContainerMiddleRow); }

Target:
public NodeContext(final GraphAdapter<?> parentGraph, final NodeAdapter<?> node) { this.node = node; this.nodeSize = new KVector(node.getSize()); treatAsCompoundNode = node.isCompoundNode() || node.getProperty(CoreOptions.INSIDE_SELF_LOOPS_ACTIVATE); sizeConstraints = node.getProperty(CoreOptions.NODE_SIZE_CONSTRAINTS); sizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS); portConstraints = node.getProperty(CoreOptions.PORT_CONSTRAINTS); portLabelsPlacement = node.getProperty(CoreOptions.PORT_LABELS_PLACEMENT); if (!PortLabelPlacement.isValid(portLabelsPlacement)) { throw new UnsupportedConfigurationException("Invalid port label placement: " + portLabelsPlacement); } portLabelsTreatAsGroup = node.getProperty(CoreOptions.PORT_LABELS_TREAT_AS_GROUP); nodeLabelPlacement = node.getProperty(CoreOptions.NODE_LABELS_PLACEMENT); if (!NodeLabelPlacement.isValid(nodeLabelPlacement)) { throw new UnsupportedConfigurationException("Invalid node label placement: " + nodeLabelPlacement); } nodeLabelsPadding = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.NODE_LABELS_PADDING); nodeLabelSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_LABEL_NODE); labelLabelSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_LABEL_LABEL); portPortSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_PORT_PORT); portLabelSpacing = IndividualSpacings.getIndividualOrInherited(node, CoreOptions.SPACING_LABEL_PORT); surroundingPortMargins = IndividualSpacings.getIndividualOrInherited( node, CoreOptions.SPACING_PORTS_SURROUNDING); labelCellSpacing = 2 * labelLabelSpacing; boolean symmetry = !sizeOptions.contains(SizeOptions.ASYMMETRICAL); nodeContainer = new StripContainerCell(Strip.VERTICAL, symmetry, 0); nodeContainerMiddleRow = new StripContainerCell(Strip.HORIZONTAL, symmetry, 0); nodeContainer.setCell(ContainerArea.CENTER, nodeContainerMiddleRow); }