final Workspace workspace = new Workspace();
final EndpointReferenceType anepr = report.getEpr();
final State state =
State.fromCurrentState_Type(report.getCurrentState());
if (anepr == null) {
this.pr.debugln("Workspace # NONE");
} else {
this.pr.debugln("Workspace # " +
EPRUtils.getIdFromEPR(report.getEpr()));
}
if (state == null) {
this.pr.debugln(" - state: NONE");
} else {
this.pr.debugln(" - state: " + state.getState());
final Exception e = state.getProblem();
if (e != null) {
this.pr.debugln(" - error: " +
CommonUtil.genericExceptionMessageWrapper(e));
}
}