GetActivityStatusesDocument stats = GetActivityStatusesDocument.Factory.newInstance();
stats.addNewGetActivityStatuses().setActivityIdentifierArray(new EndpointReferenceType[] {activityEpr});
GetActivityStatusesResponseDocument resDoc = fc.getActivityStatuses(stats);
ActivityStatusType activityStatus = resDoc
.getGetActivityStatusesResponse()
.getResponseArray()[0].getActivityStatus();
return activityStatus;
}