/**
  * @param activityOID
  * @return
  */
 public NotificationMap reactivate(Long activityOID) {
   NotificationMap notification = new NotificationMap();
   ActivityInstance ai = null;
   try {
     ai = serviceFactoryUtils.getWorkflowService().activate(activityOID);
     serviceFactoryUtils
         .getWorkflowService()
         .unbindActivityEventHandler(activityOID, "Resubmission");
     notification.addSuccess(new NotificationDTO(activityOID, ai.getActivity().getName(), null));
   } catch (ConcurrencyException ce) {
     trace.error("Unable to activate Activity, activity not in worklist", ce);
     String msg = restCommonClientMessages.getString("activity.concurrencyError");
     notification.addFailure(
         new NotificationDTO(activityOID, activityInstanceUtils.getActivityLabel(ai), msg));
   } catch (AccessForbiddenException af) {
     trace.error("User not authorized to activate", af);
     String msg = restCommonClientMessages.getString("activity.acccessForbiddenError");
     notification.addFailure(
         new NotificationDTO(activityOID, activityInstanceUtils.getActivityLabel(ai), msg));
   } catch (Exception exception) {
     trace.error("Exception occurred while reactivating activity", exception);
     notification.addFailure(new NotificationDTO(activityOID, null, exception.getMessage()));
   }
   return notification;
 }
 /**
  * @param activityOID
  * @return
  */
 public NotificationMap activate(Long activityOID) {
   NotificationMap notification = new NotificationMap();
   ActivityInstance ai = null;
   try {
     notification = activityInstanceUtils.activate(activityOID);
   } catch (ConcurrencyException ce) {
     trace.error("Unable to activate Activity, activity not in worklist", ce);
     String msg = restCommonClientMessages.getString("activity.concurrencyError");
     notification.addFailure(
         new NotificationDTO(activityOID, activityInstanceUtils.getActivityLabel(ai), msg));
   } catch (AccessForbiddenException af) {
     trace.error("User not authorized to activate", af);
     String msg = restCommonClientMessages.getString("activity.acccessForbiddenError");
     notification.addFailure(
         new NotificationDTO(activityOID, activityInstanceUtils.getActivityLabel(ai), msg));
   } catch (Exception e) {
     trace.error("Exception occurred while activating", e);
     String msg = e.getMessage();
     notification.addFailure(
         new NotificationDTO(activityOID, activityInstanceUtils.getActivityLabel(ai), msg));
   }
   return notification;
 }