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();
}