if (getMavenSession().getCurrentProject().getArtifact().isSnapshot()) {
<BUG>deployStrategy = getDeployStrategy(Strategies.DEFERRED);
</BUG>
}
else {
<BUG>deployStrategy = getDeployStrategy(Strategies.STAGING);
</BUG>
}
<BUG>final Parameters parameters = buildParameters(deployStrategy);
final FinalizeDeployRequest request = new FinalizeDeployRequest(getMavenSession(), parameters);
deployStrategy.finalizeDeploy(request);</BUG>
}

if (getMavenSession().getCurrentProject().getArtifact().isSnapshot()) {
deployStrategy = getDeployStrategy(Strategies.DEFERRED, parameters);
}
else {
deployStrategy = getDeployStrategy(Strategies.STAGING, parameters);
}
final FinalizeDeployRequest request = new FinalizeDeployRequest();
deployStrategy.finalizeDeploy(request);
}
