public void makeImmutable(){
  if (isMutable) {
    if (subjectConfirmations != null) {
      int length=subjectConfirmations.size();
      for (int i=0; i < length; i++) {
        SubjectConfirmation subjectConfirmation=(SubjectConfirmation)subjectConfirmations.get(i);
        subjectConfirmation.makeImmutable();
      }
      subjectConfirmations=Collections.unmodifiableList(subjectConfirmations);
    }
    if (baseId != null) {
      baseId.makeImmutable();
    }
    if (nameId != null) {
      nameId.makeImmutable();
    }
    isMutable=false;
  }
}

public void makeImmutable ( ) { if ( isMutable ) { if ( subjectConfirmations != null ) { int length = subjectConfirmations . size ( ) ; for ( int i = 0 ; i < length ; i ++ ) { SubjectConfirmation subjectConfirmation = ( SubjectConfirmation ) subjectConfirmations . get ( i ) ; subjectConfirmation . makeImmutable ( ) ; } subjectConfirmations = Collections . unmodifiableList ( subjectConfirmations ) ; } if ( baseId != null ) { baseId . makeImmutable ( ) ; } if ( nameId != null ) { nameId . makeImmutable ( ) ; } isMutable = false ; } }
makes the object immutable
