class CloudJobHandlerChain implements CloudJobHandler{
    private Job job;
    private CloudJobHandler handler;
    private List<RankEntity<CloudJobInterceptor>> interceptors;
    private int indexVal;

    public CloudJobHandlerChain(Job job, CloudJobHandler handler, List<RankEntity<CloudJobInterceptor>> interceptors) {
        this.job = job;
        this.handler = handler;
        this.interceptors = interceptors;
        this.indexVal = 0;
    }

    @Override
    public void handle(Context ctx) throws Throwable {<FILL_FUNCTION_BODY>}
}

        if (interceptors.size() > indexVal) {
            interceptors.get(indexVal++).target.doIntercept(job, this);
        } else {
            handler.handle(ctx);
        }
    
<no_super_class>