Understanding How Applications Interact with Foundation Services