package io.sarl.lang.core;
import java.lang.ref.WeakReference;
import java.util.UUID;
import org.eclipse.xtext.xbase.lib.Inline;
<BUG>import org.eclipse.xtext.xbase.lib.Pure;
abstract class AgentTrait extends AgentProtectedAPIObject {

private WeakReference<Agent> agentRef;
AgentTrait(Agent agent) {</BUG>
this.agentRef = new WeakReference<>(agent);

package io.sarl.lang.core;
import java.lang.ref.WeakReference;
import java.util.UUID;
import org.eclipse.xtext.xbase.lib.Inline;
import org.eclipse.xtext.xbase.lib.Pure;
import io.sarl.lang.util.ClearableReference;
public abstract class AgentTrait extends AgentProtectedAPIObject {
private WeakReference<Agent> agentRef;
private transient Object sreSpecificData;
AgentTrait(Agent agent) {
this.agentRef = new WeakReference<>(agent);
