header.setCommunicationStyle(CommunicationStyleT.MSG);
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss.SSSZ");
header.setTimestamp(formatter.format(new Date()));
Holder<HeaderT> mtosiHeader = new Holder<HeaderT>(header);
GetActiveAlarmsCountT mtosiBody = new GetActiveAlarmsCountT();
mtosiBody.setFilter(new ActiveAlarmFilterT());
// use polling method to obtain response
System.out.println("Invoking getActiveAlarmsCountAsync using polling.");
Response<GetActiveAlarmsCountResponseT> response =