try {
JsonObject root = new JsonObject();
root.add("identifier", identifier.toJson());
TimedMemberState timedMemberState = timedMemberStateFactory.createTimedMemberState();
root.add("timedMemberState", timedMemberState.toJson());
root.writeTo(writer);
writer.flush();
outputStream.flush();
post(connection);
if (manCenterConnectionLost) {
logger.info("Connection to management center restored.");