BAMServiceSummaryDSClient serviceSummaryDSClient = null;
try {
serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
serviceSummaryDSClient.addServerStatYearlySummary(stat);
} catch (Exception e) {
throw new BAMException("Adding yearly server summary stat failed", e);
} finally {
if (serviceSummaryDSClient != null) {
serviceSummaryDSClient.cleanup();
}
}