You need to override more than just getConnectionAnchor() method on the
NodeFigure. #getConnectionAnchorTerminal(ConnectionAnchor) should be
overriden too, so you have keys for the hashtable. Perhaps, other anchro
related methods should be overriden too, but that depends on what you're
doing.