endpointInfo.setAddress(oldAddress);
}
if (errorMsg != null) {
resp.sendError(500, errorMsg);
} else {
out.writeCacheTo(resp.getOutputStream());
resp.getOutputStream().flush();
}
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(e);