BAMServiceSummaryDSClient serviceSummaryDSClient = null;
try {
serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
return serviceSummaryDSClient.getServerStatQuarterlySummary(serverId, startTime, endTime);
} catch (Exception e) {
throw new BAMException("Could not retrieve quarterly summary for server: " + serverId+ " start time: " +
startTime.getBAMTimestamp(), e);
} finally {
if (serviceSummaryDSClient != null) {
serviceSummaryDSClient.cleanup();
}