public Share removeShare(String shareId){
  return shares.remove(shareId);
}

public Share removeShare ( String shareId ) { return shares . remove ( shareId ) ; }
removes the previously created share from the registered shares . in effect , the resources is no more shared / protected
