}
private void addEntity(EntityRef entityRef, BehaviorComponent behaviorComponent) {
Interpreter interpreter = entityInterpreters.get(entityRef);
if (interpreter == null) {
interpreter = new Interpreter(new Actor(entityRef));
BehaviorTree tree = behaviorComponent.tree;
entityInterpreters.put(entityRef, interpreter);
if (tree != null) {
interpreter.start(tree.getRoot());
}