Finally fixed contentMode problem once for all. Using runtime feature setAssociativeObject.