class DefaultReportParametersTranslator implements
		ReportParametersTranslator {

    public Map<String, Object> getParameterValues(String reportUnitURI,
                                                  ReportParameterValueBean[] beanValues, ExecutionContext context) {
        if (beanValues == null || beanValues.length == 0) {
            return null;
        } else {
            ReportUnit reportUnit = (ReportUnit) getRepository().getResource(
                    null, reportUnitURI, ReportUnit.class);
			if (reportUnit == null) {
				throw new JSResourceNotFoundException("jsexception.resource.of.type.not.found",
						new Object[] {"\"" + reportUnitURI + "\"", ReportUnit.class});
			}
            return getParameterValues(reportUnit, beanValues, context);
        }
    }

}