protected BeanReference visitBeanReference(final Element element) {
final BeanReferenceTag tag = new BeanReferenceTag();
tag.setElement(element);
tag.setPlaceHolderResolver(this.getPlaceHolderResolver());
final BeanReferenceImpl beanReference = new BeanReferenceImpl();
beanReference.setFilename(this.getFilename());
beanReference.setGeneratorContext(this.getGenerator().getGeneratorContext());
beanReference.setId(tag.getId());
return beanReference;
}