BindAccountRequestPacket bindAccountRequestPacket = new BindAccountRequestPacket(service.getEmail(), ac2dmAuth);
BindAccountResponseFilter barf = new BindAccountResponseFilter(bindAccountRequestPacket.getPacketID());
connector.addFilter(barf);
send(session, bindAccountRequestPacket);
BindAccountResponse bindAccountResponse = barf.nextMessage(TIMEOUT);
connector.removeFilter(barf);
/*if(bindAccountResponse==null){
throw new IllegalStateException("Account bind response could not be received!");
} else if(bindAccountResponse.hasError()){