class HashMapCache implements ICache<K, V> {

    @Override
    public void put(final K key, final V value) {
        if (useJavaSerialisation) {
            try {
                cache.put(key, JAVA_SERIALISER.serialise(value));
            } catch (final SerialisationException e) {
                throw new RuntimeException(e);
            }
        } else {
            cache.<K, V>put(key, value);
        }
    }

    public  HashMapCache(final boolean useJavaSerialisation);
    public  HashMapCache();

}