@Override
  public InstalledLiveActivity saveInstalledLiveActivity(InstalledLiveActivity activity) {
    synchronized (activitiesByUuid) {
      activitiesByUuid.put(activity.getUuid(), activity);
    }

    return activity;
  }
 /**
  * Copy construct a live activity.
  *
  * @param src the activity to make a copy of
  */
 public SimpleInstalledLiveActivity(InstalledLiveActivity src) {
   uuid = src.getUuid();
   identifyingName = src.getIdentifyingName();
   version = src.getVersion();
   lastDeployedDate = src.getLastDeployedDate();
   baseInstallationLocation = src.getBaseInstallationLocation();
   installationStatus = src.getInstallationStatus();
   lastActivityState = src.getLastActivityState();
   controllerStartupType = src.getControllerStartupType();
 }
 @Override
 public void deleteInstalledLiveActivity(InstalledLiveActivity activity) {
   synchronized (activitiesByUuid) {
     activitiesByUuid.remove(activity.getUuid());
   }
 }