return portLocal;
}
// Look for parameter in actor.
Variable result = null;
if (_entity != null) {
result = getScopedVariable(null, _entity, name);
}
if (result != null) {
// Insert code to get a ref to the variable,
// and to get the token of that variable.
Local containerLocal = Jimple.v().newLocal("container",
RefType.v(PtolemyUtilities.namedObjClass));
_body.getLocals().add(containerLocal);
Local attributeLocal = Jimple.v().newLocal("attribute",
PtolemyUtilities.attributeType);
_body.getLocals().add(attributeLocal);
Local tokenLocal = Jimple.v().newLocal("token",
PtolemyUtilities.tokenType);
_body.getLocals().add(tokenLocal);
Entity entityContainer = FieldsForEntitiesTransformer
.getEntityContainerOfObject(result);
String deepName = result.getName(entityContainer);
_units.insertBefore(Jimple.v().newAssignStmt(containerLocal,
thisLocal), _insertPoint);
NamedObj container = _entity;