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