public void makeImmutable(){
  if (mutable) {
    if (attrValues != null) {
      attrValues=Collections.unmodifiableList(attrValues);
    }
    if (valueStrings != null) {
      valueStrings=Collections.unmodifiableList(valueStrings);
    }
    if (anyMap != null) {
      anyMap=Collections.unmodifiableMap(anyMap);
    }
    mutable=false;
  }
}

public void makeImmutable ( ) { if ( mutable ) { if ( attrValues != null ) { attrValues = Collections . unmodifiableList ( attrValues ) ; } if ( valueStrings != null ) { valueStrings = Collections . unmodifiableList ( valueStrings ) ; } if ( anyMap != null ) { anyMap = Collections . unmodifiableMap ( anyMap ) ; } mutable = false ; } }
makes the object immutable .
