{
final DefaultListParameter listParameter = (DefaultListParameter) parameter;
final String query = listParameter.getQueryName();
if (query == null)
{
final ParameterLocationInfo queryLocation = new ParameterLocationInfo(parameter);
resultHandler.notifyInspectionResult
(new InspectionResult(this, InspectionResult.Severity.HINT,
Messages.getString("InvalidQueryNameReferenceInspection.QueryUndefined"),
queryLocation));
}
else
{
if (isQueryExecutable(reportRenderContext.getReportDefinition(), query) == false)
{
final ParameterLocationInfo queryLocation = new ParameterLocationInfo(parameter);
resultHandler.notifyInspectionResult
(new InspectionResult(this, InspectionResult.Severity.ERROR,
Messages.getString("InvalidQueryNameReferenceInspection.QueryNotRecognized", query),
queryLocation));
}