class CaseRuntimeDataServiceImpl implements CaseRuntimeDataService, DeploymentEventListener {

    @Override
    public List<TaskSummary> getCaseTasksAssignedAsPotentialOwner(String caseId, String userId, List<Status> status, QueryContext queryContext) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("caseId", caseId + "%");
        params.put("userId", userId);
        params.put("status", adoptList(status, allActiveStatus));
        params.put("groupIds", getAuthenticatedUserRoles(identityProvider));
        applyQueryContext(params, queryContext);
        List<TaskSummary> tasks =  commandService.execute(new QueryNameCommand<List<TaskSummary>>("getCaseTasksAsPotentialOwner", params));
        return tasks;
    }

    public  CaseRuntimeDataServiceImpl();

}