class ComponentServiceImpl implements ComponentService {

    protected List<Component> translateCollections(QueryResults<ComponentBo> componentBos,
            QueryResults<DerivedComponentBo> derivedComponentBos){
        List<Component> components = new ArrayList<Component>();
        if (componentBos != null && CollectionUtils.isNotEmpty(componentBos.getResults())) {
            for (ComponentBo componentBo : componentBos.getResults()) {
                components.add(ComponentBo.to(componentBo));
            }
        }
        if (derivedComponentBos != null && CollectionUtils.isNotEmpty(derivedComponentBos.getResults())) {
            for (DerivedComponentBo derivedComponentBo : derivedComponentBos.getResults()) {
                components.add(DerivedComponentBo.to(derivedComponentBo));
            }
        }
        return Collections.unmodifiableList(components);
    }

}