/** {@inheritDoc} inits ProtocolBase Units. */
 @Override
 public void postInitHook(ProtocolBase protocol) {
   for (ProtocolAttachmentPersonnelBase attachment : this.attachmentPersonnels) {
     attachment.init(this);
   }
   for (ProtocolUnitBase unit : this.protocolUnits) {
     unit.init(this);
   }
 }
 /**
  * This method is to find lead unit from unit list.
  *
  * @return ProtocolUnitBase (lead unit)
  */
 public ProtocolUnitBase getLeadUnit() {
   ProtocolUnitBase leadUnit = null;
   for (ProtocolUnitBase unit : this.getProtocolUnits()) {
     if (unit.getLeadUnitFlag()) {
       leadUnit = unit;
       break;
     }
   }
   return leadUnit;
 }
 /** This method is to reset all lead unit flag in protocol unit. */
 public void resetAllProtocolLeadUnits() {
   for (ProtocolUnitBase protocolUnit : this.getProtocolUnits()) {
     protocolUnit.setLeadUnitFlag(false);
   }
 }