private void removeUsedMovements() { PatientHandlingMovementCollection collUsedItems = new PatientHandlingMovementCollection(); if(form.getLocalContext().getSelectedParentInstanceIsNotNull()) { PatientHandlingMovementVo voPatHandlingMovement = form.getLocalContext().getSelectedParentInstance(); if(voPatHandlingMovement.getDetailsIsNotNull()) { for(int i=0; i<voPatHandlingMovement.getDetails().size(); i++) { if(voPatHandlingMovement.getDetails().get(i).getMovementIsNotNull()) collUsedItems.add(voPatHandlingMovement.getDetails().get(i).getMovement()); } } } for(int i=0;i<collUsedItems.size(); i++) form.ctnHandling().lyrDetails().tabDetails().cmbMovement().removeRow(collUsedItems.get(i)); }