Manipulating static objects at runtime