result.close();
}
private void importSourceConnections(DBModel _dbModel) throws SQLException {
DBObject dbParent = null;
String oldParent = null;
<BUG>ResultSet result = DBPlugin.select(db, "SELECT * FROM diagrammodelarchimateconnection WHERE model = ? AND version = ? ORDER BY parent, rank", _dbModel.getId(), _dbModel.getVersion());
</BUG>
while(result.next()) {
if ( !result.getString("parent").equals(oldParent) ) {
<BUG>dbParent = new DBObject(_dbModel, ArchimateModelUtils.getObjectByID(_dbModel.getModel(),_dbModel.getVersionnedId(result.getString("parent"))));
if ( dbParent.getEObject() == null ) {
DBPlugin.popup(Level.Error, "Cannot import connection ("+result.getString("id").trim()+") as we do not know its parent ("+result.getString("parent").trim()+")");
break;</BUG>
}

result.close();
}
private void importSourceConnections(DBModel _dbModel) throws SQLException {
DBObject dbParent = null;
String oldParent = null;
ResultSet result = DBPlugin.select(db, "SELECT * FROM diagrammodelarchimateconnection WHERE model = ? AND version = ? ORDER BY parent, rank", _dbModel.getModelId(), _dbModel.getVersion());
while(result.next()) {
if ( !result.getString("parent").equals(oldParent) ) {
dbParent = new DBObject(_dbModel, _dbModel.generateId(result.getString("parent")));
if ( dbParent.getEObject() == null ) {
DBPlugin.popup(Level.Error, "Cannot import connection ("+result.getString("id")+") as we do not know its parent ("+result.getString("parent")+")");
break;
