// as we want the refl and regl maps populated before processing @Bean annotation.
for (Class refListener : refListenerClasses) {
Bean bean = (Bean) refListener.getAnnotation(Bean.class);
// register the treference with its id
TreferenceListener tref = generateTrefListener(refListener);
if (bean.id().length() > 0) {
reflMap.put(bean.id(), tref);
} else {
throw new BlueprintAnnotationException("Unable to find the id for the @ReferenceListener annotated class " + refListener.getName());