#vulnerable code 
                             public static RemoteCacheManager getInstance(Properties props){
		if(cacheManager == null){
			synchronized (RemoteCacheManager.class) {
				cacheManager = new RemoteCacheManager(props);
			}
		}
		return cacheManager;
	} 
                            #location 7 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                             public static RemoteCacheManager getInstance(Properties props){
		RemoteCacheManager result = cacheManager;
		if(result == null){
			synchronized (RemoteCacheManagerHolder.class) {
				result = cacheManager;
				if (result == null) {
					cacheManager = result = new RemoteCacheManager(props);
				}
			}
		}
		return result;
	}