@Override
public Component getComponent() {
Component component = super.getComponent();
if (component == null) {
// The component is null when read from the graph XML.
component = new ConstantComponent();
setComponent(component);
}
return component;
}