Affinity: Managing Java Application Servers