<BUG>private void importTargetConnections(DBModel _dbModel) throws SQLException {
ResultSet result = DBPlugin.select(db, "SELECT id, targetconnections FROM diagrammodelarchimateobject WHERE model = ? AND version = ? AND targetconnections IS NOT NULL", _dbModel.getModelId(), _dbModel.getVersion());
</BUG>
while(result.next()) {
<BUG>DBObject dbObject = new DBObject(_dbModel, DBPlugin.generateId(result.getString("id"), _dbModel.getModelId(), _dbModel.getVersion()));
</BUG>
for ( String target: result.getString("targetconnections").split(",")) {
<BUG>if ( ArchimateModelUtils.getObjectByID(_dbModel.getModel(), DBPlugin.generateId(target, _dbModel.getModelId(), _dbModel.getVersion())) == null )
DBPlugin.popup(Level.Error, "Cannot found targetConnection "+target);
else {
dbObject.getTargetConnections().add((IDiagramModelConnection)ArchimateModelUtils.getObjectByID(_dbModel.getModel(), DBPlugin.generateId(target, _dbModel.getModelId(), _dbModel.getVersion())));
++nbConnection;</BUG>
}

dbObject.setTextPosition(result.getInt("textposition"));
dbObject.setType(result.getInt("type"));
if ( "DiagramModelArchimateConnection".equals(result.getString("class")) )  dbObject.setRelationship(result.getString("relationship"));
importBendpoints(dbObject);
importProperties(dbObject);
dbParent.getSourceConnections().add((IDiagramModelConnection)dbObject.getEObject());
_dbModel.registerDBObject(dbObject);
