public static ContentionManager createContentionManager() {
String cmId = System.getProperty(TL2CM_CONTENTIONMANAGER);
ContentionManager cm = null;
int constant = getConstant();
if ("Suicide".equals(cmId)) {
cm = new Suicide();
}
else if ("Aggressive".equals(cmId)) {
cm = new Aggressive();
}
if ("Polite".equals(cmId)) {
cm = new Polite(2);
}
else if ("Karma".equals(cmId)) {
cm = new Karma(4);
}
else if ("Polka".equals(cmId)) {
cm = new Polka(4);
}
else {
cm = new Suicide(); // This is the default CM
}
return cm;
}