package io.sarl.lang.core;
public interface Capacity {
abstract class ContextAwareCapacityWrapper<C extends Capacity> implements Capacity {
<BUG>private static final ThreadLocal<Object> CALLER = new ThreadLocal<>();</BUG>
protected final C capacity;
<BUG>private final Object caller;

public ContextAwareCapacityWrapper(C capacity, Object caller) {
</BUG>
assert capacity != null;

package io.sarl.lang.core;
public interface Capacity {
abstract class ContextAwareCapacityWrapper<C extends Capacity> implements Capacity {
protected final C capacity;
private final AgentTrait caller;
public ContextAwareCapacityWrapper(C capacity, AgentTrait caller) {
assert capacity != null;
