if(_inputStaffDetail.getID() != null)//Conditional case
jobAssign.setStaffNumber(_inputStaffDetail.getID());
if(_inputStaffDetail.getName() != null)
jobAssign.setStaffName(_inputStaffDetail.getName());
EquipmentType equipType = _input.getTaskDetails().getResources().getEquipment();
EquipmentDetailsType equip = new EquipmentDetailsType();
if(equipType != null && !equipType.getEquipmentDetails().isEmpty()){//Conditional case
equip = equipType.getEquipmentDetails().get(0);//get the first equip ONLY
if(equip.getID() != null)//Conditional case
jobAssign.setEquipId(equip.getID());
if(equip.getDescription() != null)
jobAssign.setEquipDesc(equip.getDescription());