private void btCertificateActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btCertificateActionPerformed
{//GEN-HEADEREND:event_btCertificateActionPerformed
if (isInnerPanelClear()) {
try {
CertificateLocal cl = new CertificateLocal(clientLocal, selectedDiseaseNode != null ? selectedDiseaseNode.getDelegate() : null);
if (!cl.canCreate()) {
throw new ClipsException(SecurityChecker.getClientHasNoRightMsg(UserRightsSet.MODIFY_CERTIFICATE.id));
}
ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
for (int i = 0; i < root.getChildCount(); i++) {
if (root.getChildAt(i) instanceof CertificateCollectorNode) {