Program: 32867
Project: 32867
Buggy source:
private void createModuleDrivers(boolean createProxys){
  if (!createProxys) {
    this.cursorDriver=ImplFactory.createCursorDriver(configure,this.httpManager);
    this.batchDriver=ImplFactory.createBatchDriver(configure,this.httpManager);
    this.collectionDriver=ImplFactory.createCollectionDriver(configure,this.httpManager);
    this.documentDriver=ImplFactory.createDocumentDriver(configure,this.httpManager);
    this.indexDriver=ImplFactory.createIndexDriver(configure,this.httpManager);
    this.adminDriver=ImplFactory.createAdminDriver(configure,this.httpManager);
    this.aqlFunctionsDriver=ImplFactory.createAqlFunctionsDriver(configure,this.httpManager);
    this.simpleDriver=ImplFactory.createSimpleDriver(configure,cursorDriver,this.httpManager);
    this.usersDriver=ImplFactory.createUsersDriver(configure,this.httpManager);
    this.importDriver=ImplFactory.createImportDriver(configure,this.httpManager);
    this.databaseDriver=ImplFactory.createDatabaseDriver(configure,this.httpManager);
    this.endpointDriver=ImplFactory.createEndpointDriver(configure,this.httpManager);
    this.replicationDriver=ImplFactory.createReplicationDriver(configure,this.httpManager);
    this.graphDriver=ImplFactory.createGraphDriver(configure,cursorDriver,this.httpManager);
    this.jobsDriver=ImplFactory.createJobsDriver(configure,this.httpManager);
    this.transactionDriver=ImplFactory.createTransactionDriver(configure,this.httpManager);
  }
 else {
    this.transactionDriver=(InternalTransactionDriver)Proxy.newProxyInstance(InternalTransactionDriver.class.getClassLoader(),new Class<?>[]{InternalTransactionDriver.class},new InvocationHandlerImpl(this.transactionDriver));
    this.jobsDriver=(InternalJobsDriver)Proxy.newProxyInstance(InternalJobsDriver.class.getClassLoader(),new Class<?>[]{InternalJobsDriver.class},new InvocationHandlerImpl(this.jobsDriver));
    this.cursorDriver=(InternalCursorDriver)Proxy.newProxyInstance(InternalCursorDriver.class.getClassLoader(),new Class<?>[]{InternalCursorDriver.class},new InvocationHandlerImpl(this.cursorDriver));
    this.collectionDriver=(InternalCollectionDriver)Proxy.newProxyInstance(InternalCollectionDriver.class.getClassLoader(),new Class<?>[]{InternalCollectionDriver.class},new InvocationHandlerImpl(this.collectionDriver));
    this.documentDriver=(InternalDocumentDriver)Proxy.newProxyInstance(InternalDocumentDriver.class.getClassLoader(),new Class<?>[]{InternalDocumentDriver.class},new InvocationHandlerImpl(this.documentDriver));
    this.indexDriver=(InternalIndexDriver)Proxy.newProxyInstance(InternalIndexDriver.class.getClassLoader(),new Class<?>[]{InternalIndexDriver.class},new InvocationHandlerImpl(this.indexDriver));
    this.adminDriver=(InternalAdminDriver)Proxy.newProxyInstance(InternalAdminDriver.class.getClassLoader(),new Class<?>[]{InternalAdminDriver.class},new InvocationHandlerImpl(this.adminDriver));
    this.aqlFunctionsDriver=(InternalAqlFunctionsDriver)Proxy.newProxyInstance(InternalAqlFunctionsDriver.class.getClassLoader(),new Class<?>[]{InternalAqlFunctionsDriver.class},new InvocationHandlerImpl(this.aqlFunctionsDriver));
    this.simpleDriver=(InternalSimpleDriver)Proxy.newProxyInstance(InternalSimpleDriver.class.getClassLoader(),new Class<?>[]{InternalSimpleDriver.class},new InvocationHandlerImpl(this.simpleDriver));
    this.usersDriver=(InternalUsersDriver)Proxy.newProxyInstance(InternalUsersDriver.class.getClassLoader(),new Class<?>[]{InternalUsersDriver.class},new InvocationHandlerImpl(this.usersDriver));
    this.importDriver=(InternalImportDriver)Proxy.newProxyInstance(InternalImportDriver.class.getClassLoader(),new Class<?>[]{InternalImportDriver.class},new InvocationHandlerImpl(this.importDriver));
    this.databaseDriver=(InternalDatabaseDriver)Proxy.newProxyInstance(InternalDatabaseDriver.class.getClassLoader(),new Class<?>[]{InternalDatabaseDriver.class},new InvocationHandlerImpl(this.databaseDriver));
    this.endpointDriver=(InternalEndpointDriver)Proxy.newProxyInstance(InternalEndpointDriver.class.getClassLoader(),new Class<?>[]{InternalEndpointDriver.class},new InvocationHandlerImpl(this.endpointDriver));
    this.replicationDriver=(InternalReplicationDriver)Proxy.newProxyInstance(InternalReplicationDriver.class.getClassLoader(),new Class<?>[]{InternalReplicationDriver.class},new InvocationHandlerImpl(this.replicationDriver));
    this.graphDriver=(InternalGraphDriver)Proxy.newProxyInstance(InternalGraphDriver.class.getClassLoader(),new Class<?>[]{InternalGraphDriver.class},new InvocationHandlerImpl(this.graphDriver));
  }
}

Fixed version (ground truth):
private void createModuleDrivers(boolean createProxys){
  if (!createProxys) {
    this.cursorDriver=ImplFactory.createCursorDriver(configure,this.httpManager);
    this.batchDriver=ImplFactory.createBatchDriver(configure,this.httpManager);
    this.collectionDriver=ImplFactory.createCollectionDriver(configure,this.httpManager);
    this.documentDriver=ImplFactory.createDocumentDriver(configure,this.httpManager);
    this.indexDriver=ImplFactory.createIndexDriver(configure,this.httpManager);
    this.adminDriver=ImplFactory.createAdminDriver(configure,this.httpManager);
    this.aqlFunctionsDriver=ImplFactory.createAqlFunctionsDriver(configure,this.httpManager);
    this.simpleDriver=ImplFactory.createSimpleDriver(configure,cursorDriver,this.httpManager);
    this.usersDriver=ImplFactory.createUsersDriver(configure,this.httpManager);
    this.importDriver=ImplFactory.createImportDriver(configure,this.httpManager);
    this.databaseDriver=ImplFactory.createDatabaseDriver(configure,this.httpManager);
    this.endpointDriver=ImplFactory.createEndpointDriver(configure,this.httpManager);
    this.replicationDriver=ImplFactory.createReplicationDriver(configure,this.httpManager);
    this.graphDriver=ImplFactory.createGraphDriver(configure,cursorDriver,this.httpManager);
    this.edgeDriver=ImplFactory.createEdgeDriver(configure,cursorDriver,this.httpManager);
    this.jobsDriver=ImplFactory.createJobsDriver(configure,this.httpManager);
    this.transactionDriver=ImplFactory.createTransactionDriver(configure,this.httpManager);
  }
 else {
    this.transactionDriver=(InternalTransactionDriver)Proxy.newProxyInstance(InternalTransactionDriver.class.getClassLoader(),new Class<?>[]{InternalTransactionDriver.class},new InvocationHandlerImpl(this.transactionDriver));
    this.jobsDriver=(InternalJobsDriver)Proxy.newProxyInstance(InternalJobsDriver.class.getClassLoader(),new Class<?>[]{InternalJobsDriver.class},new InvocationHandlerImpl(this.jobsDriver));
    this.cursorDriver=(InternalCursorDriver)Proxy.newProxyInstance(InternalCursorDriver.class.getClassLoader(),new Class<?>[]{InternalCursorDriver.class},new InvocationHandlerImpl(this.cursorDriver));
    this.collectionDriver=(InternalCollectionDriver)Proxy.newProxyInstance(InternalCollectionDriver.class.getClassLoader(),new Class<?>[]{InternalCollectionDriver.class},new InvocationHandlerImpl(this.collectionDriver));
    this.documentDriver=(InternalDocumentDriver)Proxy.newProxyInstance(InternalDocumentDriver.class.getClassLoader(),new Class<?>[]{InternalDocumentDriver.class},new InvocationHandlerImpl(this.documentDriver));
    this.indexDriver=(InternalIndexDriver)Proxy.newProxyInstance(InternalIndexDriver.class.getClassLoader(),new Class<?>[]{InternalIndexDriver.class},new InvocationHandlerImpl(this.indexDriver));
    this.adminDriver=(InternalAdminDriver)Proxy.newProxyInstance(InternalAdminDriver.class.getClassLoader(),new Class<?>[]{InternalAdminDriver.class},new InvocationHandlerImpl(this.adminDriver));
    this.aqlFunctionsDriver=(InternalAqlFunctionsDriver)Proxy.newProxyInstance(InternalAqlFunctionsDriver.class.getClassLoader(),new Class<?>[]{InternalAqlFunctionsDriver.class},new InvocationHandlerImpl(this.aqlFunctionsDriver));
    this.simpleDriver=(InternalSimpleDriver)Proxy.newProxyInstance(InternalSimpleDriver.class.getClassLoader(),new Class<?>[]{InternalSimpleDriver.class},new InvocationHandlerImpl(this.simpleDriver));
    this.usersDriver=(InternalUsersDriver)Proxy.newProxyInstance(InternalUsersDriver.class.getClassLoader(),new Class<?>[]{InternalUsersDriver.class},new InvocationHandlerImpl(this.usersDriver));
    this.importDriver=(InternalImportDriver)Proxy.newProxyInstance(InternalImportDriver.class.getClassLoader(),new Class<?>[]{InternalImportDriver.class},new InvocationHandlerImpl(this.importDriver));
    this.databaseDriver=(InternalDatabaseDriver)Proxy.newProxyInstance(InternalDatabaseDriver.class.getClassLoader(),new Class<?>[]{InternalDatabaseDriver.class},new InvocationHandlerImpl(this.databaseDriver));
    this.endpointDriver=(InternalEndpointDriver)Proxy.newProxyInstance(InternalEndpointDriver.class.getClassLoader(),new Class<?>[]{InternalEndpointDriver.class},new InvocationHandlerImpl(this.endpointDriver));
    this.replicationDriver=(InternalReplicationDriver)Proxy.newProxyInstance(InternalReplicationDriver.class.getClassLoader(),new Class<?>[]{InternalReplicationDriver.class},new InvocationHandlerImpl(this.replicationDriver));
    this.graphDriver=(InternalGraphDriver)Proxy.newProxyInstance(InternalGraphDriver.class.getClassLoader(),new Class<?>[]{InternalGraphDriver.class},new InvocationHandlerImpl(this.graphDriver));
    this.edgeDriver=(InternalEdgeDriver)Proxy.newProxyInstance(InternalEdgeDriver.class.getClassLoader(),new Class<?>[]{InternalEdgeDriver.class},new InvocationHandlerImpl(this.edgeDriver));
  }
}