class ComponentServiceImpl implements ComponentService {

    @Override
    public List<Component> getAllComponentsByNamespaceCode(String namespaceCode) {
        if (StringUtils.isBlank(namespaceCode)) {
            throw new RiceIllegalArgumentException("namespaceCode was a null or blank value");
        }
        Map<String, String> criteria = new HashMap<String, String>();
        criteria.put("namespaceCode", namespaceCode);
        QueryResults<ComponentBo> componentBos =
                getDataObjectService().findMatching(ComponentBo.class,
                        QueryByCriteria.Builder.andAttributes(criteria).build());

        QueryResults<DerivedComponentBo> derivedComponentBos =
                getDataObjectService().findMatching(DerivedComponentBo.class, QueryByCriteria.Builder.andAttributes(
                        criteria).build());
        return translateCollections(componentBos, derivedComponentBos);
    }

}