}
if (director != null) {
if (director instanceof TMDirector) {
_director = (TMDirector) director;
_directorVersion = port.workspace().getVersion();
return _director;
} else {
throw new IllegalActionException(getContainer(),
"Does not have a TMDirector.");
}