this.socket = (NodeSocket) modelObject;
socket.setRepresentation(this);
// Create title figure holding the name of the Socket.
// This will return the node name in case of entry or final node sockets.
titleFigure = new MoveableTitleFigure(getReferredProcessElement());
titleFigure.setTitleFormat(skin.getSocketTitleFormat());
titleFigure.setVerboseDisplay(true);
addContent(titleFigure, CONTENT_TEXT);
// Add the socket parameters