// inexplicable reason, are rendered in two different places!
// The filter for the layout algorithm of the ports within this
// entity. This returns true only if the candidate object is
// an instance of Locatable and the semantic object associated
// with it is an instance of Entity.
Filter portFilter = new Filter() {
public boolean accept(Object candidate) {
GraphModel model = getController().getGraphModel();
Object semanticObject = model.getSemanticObject(candidate);
if (candidate instanceof Locatable