if(null == extension || !FinishProductionBranchExtension.class.isAssignableFrom(extension.getClass()))
{
return;
}
FinishProductionBranchExtension finishExtension = (FinishProductionBranchExtension) extension;
try
{
BranchType type = branchHelper.getCurrentBranchType();
switch(type)
{
case MASTER:
finishExtension.onMasterBranchVersionChange(newVersion,oldVersion,flow);
break;
case HOTFIX:
finishExtension.onTopicBranchVersionChange(newVersion,oldVersion,flow);
break;
case RELEASE:
finishExtension.onTopicBranchVersionChange(newVersion,oldVersion,flow);
break;
}
}
catch (Exception e)
{