#fixed code
                                Enrollment getEnrollment() {
        return client.getUserContext().getEnrollment();
    }
#vulnerable code 
                                ExecutorService getChannelExecutorService() {
        return executorService;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION