}
@Override
public IStatsComponent getStatsViewComponent()
{
CrisStatTopObjectComponent component = new CrisStatTopObjectComponent();
BeanComponent bean = new BeanComponent();
bean.setQuery(getRelationConfiguration().getQuery());
for(String key : getTypes().keySet()) {
bean.getSubQueries().put(key, getTypes().get(key).getFacetQuery());
}
component.setBean(bean);
component.setTargetObjectClass(getTarget());
component.setRelationObjectClass(getRelationObjectClass());
try
{
component.setRelationObjectType(CrisConstants.getEntityType(getRelationObjectClass()));
}
catch (InstantiationException e)
{
log.error(e.getMessage(), e);
}