{
if(AbstractBranchMergingCommand.class.isAssignableFrom(gitFlowCommand.getClass()))
{
ReleaseContext ctx = contextProvider.getContext();
AbstractBranchMergingCommand mergingCommand = (AbstractBranchMergingCommand) gitFlowCommand;
MavenProject rootProject = ReleaseUtil.getRootProject(branchHelper.getProjectsForCurrentBranch());
mergingCommand.setMessage(ReleaseUtil.interpolate(ctx.getTagMessage(), rootProject.getModel()));
}
}
catch (Exception e)
{
throw new JGitFlowExtensionException("Error setting tag message", e);