Constructs an instance.
super(name);
try {
if (localVariables.isMutable()) {
throw new MutabilityException("localVariables.isMutable()");
}
} catch (NullPointerException ex) {
// Translate the exception.
throw new NullPointerException("localVariables == null");
}
this.localVariables = localVariables;