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.getModelId(), _dbModel.getVersion());
</BUG>
while(result.next()) {
if ( !result.getString("parent").equals(oldParent) ) {
<BUG>dbParent = new DBObject(_dbModel, DBPlugin.generateId(result.getString("parent"), _dbModel.getModelId(), _dbModel.getVersion()));
</BUG>
if ( dbParent.getEObject() == null ) {

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.getProjectId(), _dbModel.getVersion());
while(result.next()) {
if ( !result.getString("parent").equals(oldParent) ) {
dbParent = _dbModel.searchDBObjectById(DBPlugin.generateId(result.getString("parent"), _dbModel.getProjectId(), _dbModel.getVersion()));
if ( dbParent.getEObject() == null ) {
