1. A method for loading a class, comprising: loading a class; inserting an immutability flag into the class; determining whether the class is immutable; and setting the immutability flag if the class is immutable.