public void update(String wsId,long activityTime){
  if (expirePeriod > 0) {
    activeWorkspaces.put(wsId,activityTime + expirePeriod);
  }
}

public void update ( String wsId , long activityTime ) { if ( expirePeriod > 0 ) { activeWorkspaces . put ( wsId , activityTime + expirePeriod ) ; } }
update the expiry period the workspace if it exists , otherwise add new one
