private void displayDetails(CarePlanTemplate voCpt) { // Assessment Component form.comboBoxComponent().setValue(voCpt != null ? voCpt.getAssessmentComponent():null); // Creation Date form.dateCreation().setValue(voCpt != null ? voCpt.getCreationDate():null); // Active form.chkActive().setValue(voCpt != null && voCpt.getActiveIsNotNull() ? voCpt.getActive().booleanValue():null); // Title form.textBoxTitle().setValue(voCpt != null ? voCpt.getTitle():null); // Objective CarePlanTemplateObjectiveCollection objectiveValue; if ( voCpt != null && (objectiveValue = voCpt.getObjectives()) != null) { if (objectiveValue.size() > 0) form.textBoxObj().setValue(objectiveValue.get(0).getObjective()); } // Interventions displayInterventions(); }