setParam("sysid",passport.getSysId());
setParam("sigid",passport.getSigId().toString());
setParam("sigalg",passport.getSigAlg());
setParam("sigmode",passport.getSigMode());
setParam("hashalg",passport.getHashAlg());
passport.incSigId();
passport.saveChanges();
List<MultipleSyntaxElements> msgelements=msg.getChildContainers();
List<SyntaxElement> sigheads=((MultipleSEGs)(msgelements.get(1))).getElements();
List<SyntaxElement> sigtails=((MultipleSEGs)(msgelements.get(msgelements.size()-2))).getElements();