/*
 *
 *  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
 *
 *  This program and the accompanying materials are made available under the
 *  terms of the Eclipse Public License v1.0 which accompanies this distribution,
 *  and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 */

package org.opendaylight.controller.cluster.datastore.node.utils;

import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import org.opendaylight.yangtools.yang.common.QName;

public class QNameFactory {

    private static final int MAX_QNAME_CACHE_SIZE = 10000;

    private static LoadingCache<String, QName> cache = CacheBuilder.newBuilder()
        .maximumSize(MAX_QNAME_CACHE_SIZE)
        .softValues()
        .build(
            new CacheLoader<String, QName>() {
                public QName load(String key) {
                    return QName.create(key);
                }
            }
        );


    public static QName create(String name){
        return cache.getUnchecked(name);
    }
}

@@ -675,16 +675,22 @@
  static 
+final 
 LoadingC
@@ -709,21 +709,21 @@
  QName%3E 
-cache
+CACHE
  = Cache
@@ -867,24 +867,50 @@
  QName%3E() %7B%0A
+                @Override%0A
             
@@ -1096,21 +1096,21 @@
  return 
-cache
+CACHE
 .getUnch

Make sure QNameFactory cache is constant