@Override
    public Object remove(Object key) {
        Object value = cache.remove(key);
        if (value != null) {
            try {
                if (key.toString().startsWith("API::")) { //$NON-NLS-1$
                    value = unmarshalAs(value.toString(), Api.class);
                } else if (key.toString().startsWith("CLIENT::")) { //$NON-NLS-1$
                    value = unmarshalAs(value.toString(), Client.class);
                }
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return value;
    }
@see java.util.Map#remove(java.lang.Object)
gateway/engine/ispn/src/main/java/io/apiman/gateway/engine/ispn/io/RegistryCacheMapWrapper.java