Add __static method for static object initialization.