Java allows you to define blocks of code as static. Code within static blocks is executed only once, when the class is first loaded.
IBM® Rational® Rhapsody® allows you to add static blocks to classes in your model, and generates appropriate code for such blocks.