combatTraker = (CombatTraker) Beans.getInstanceOf(bean,
CombatTraker.class);
}
if (Beans.isInstanceOf(bean, BeanDirectory.class)) {
final BeanDirectory doc = (BeanDirectory) Beans.getInstanceOf(bean,
BeanDirectory.class);
if (doc.getParent() == null) {
this.rootDirectory = doc;
}
notifyBeanDocumentAdded(doc);
notifyBeanAdded(doc);
} else if (Beans.isInstanceOf(bean, BeanDocument.class)) {
final BeanDocument doc = (BeanDocument) Beans.getInstanceOf(bean,
BeanDocument.class);
// TODO may change later but now we do not want to receive the
// document while we do not contain the internal bean
this.addWaitBeanListener(new WaitBeanListener() {
@Override
public UniqueID getBeanId() {
return doc.getBeanId();
}
@Override
public void beanReceived(BasicBean bean) {
synchronized (documentsBean) {