figure.resetPorts();
for (Edge edge : parent.incomingEdgesOf(vertex)) {
String port = (String) edge
.getValue(ObjectType.PARAMETER_TARGET_PORT);
figure.addInputPort(port);
}
for (Edge edge : parent.outgoingEdgesOf(vertex)) {
String port = (String) edge
.getValue(ObjectType.PARAMETER_SOURCE_PORT);