} else if (r.getMethod().getSubSignature().equals(
PtolemyUtilities.getEntityMethod.getSubSignature())) {
Value nameValue = r.getArg(0);
if (Evaluator.isValueConstantValued(nameValue)) {
StringConstant nameConstant = (StringConstant) Evaluator
.getConstantValueOf(nameValue);
String name = nameConstant.value;
if (_debug) {
System.out.println("replacing " + unit);