Details
Description
In my project, I see the following logs continuously:
[INFO] [talledLocalContainer] 12.06.2014 16:57:03 WARN [org.hippoecm.hst.content.beans.manager.ObjectConverterImpl.getObject():177] No Descriptor found for node '/'. Cannot return a Bean for 'rep:root'.
After debugging, I found that the warning log happens due to code from Selection forge module [1] like the following [2]:
HippoBean virtualSiteContentBaseBean = hippoBean;
while (!virtualSiteContentBaseBean.getPath().endsWith("hst:content")
&& (virtualSiteContentBaseBean.getParentBean() != null))
I think we can skip bean resolution if the target node is the root.
This way, we can avoid this kind unnecessary warning logs.
[1] http://selection.forge.onehippo.org/
[2] https://forge.onehippo.org/svn/selection/selection/tags/selectionplugins-2.06.04/hst/src/main/java/org/onehippo/forge/selection/hst/manager/DefaultValueListManager.java