@Override
	public DefaultConnectionLabel toItem( ConnectionLabelData data, DefaultUmlDiagram diagram ) {
		AbstractConnection connection = (AbstractConnection)diagram.getItem( data.getConnection() );
		if(connection == null){
			throw new IllegalStateException( "cannot find connection of label" );
		}
		
		DefaultConnectionLabel label = new DefaultConnectionLabel( diagram, data.getKey(), connection );
		label.setText( data.getText() );
		label.setConfiguration( new ConnectionLabelConfiguration( data.getConfigurationId() ) );
		return label;
	}