if(ifRollback.beforeLinkSwitch != null){
result = ifRollback.beforeLinkSwitch.call($, task);
}
Releases r = $.var(releases.session);
Optional<Release> rollbackTo = $.var(releases.rollbackToRelease);
// $.putConst(releases.activatedRelease, rollbackTo);
if(rollbackTo.isPresent()){
r.rollbackTo(rollbackTo.get());
}
if(ifRollback.afterLinkSwitch != null){
result = result.and(ifRollback.afterLinkSwitch.call($, task));
}