if (creatorDn == null || !creatorDn.equals(callerDn)) {
return Response.status(Response.Status.FORBIDDEN).build();
}
try {
final Blackboard blackboard = brokerResource.getBlackboard();
final CtxStatus status = blackboard.getStatus();
final List<NodeStatus> identities = blackboard.identities(true, null, null);
final ContextStatus responseStatus = new ContextStatus();
responseStatus.setAllOk(status.isAllOk());
responseStatus.setComplete(status.isComplete());
responseStatus.setErrorOccurred(status.isErrorOccurred());
responseStatus.setExpectedNodeCount(status.getTotalNodeCount());
responseStatus.setNodeCount(status.getPresentNodeCount());
responseStatus.setNodes(identities);
return Response.ok(gson.toJson(responseStatus)).build();
} catch (ContextBrokerException e) {