@@ -0,0 +1,1834 @@
+/**%0A * Copyright 2015 Palantir Technologies%0A *%0A * Licensed under the BSD-3 License (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://opensource.org/licenses/BSD-3-Clause%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.palantir.atlasdb.persister;%0A%0Aimport java.io.IOException;%0A%0Aimport com.fasterxml.jackson.core.JsonProcessingException;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.google.common.base.Throwables;%0Aimport com.palantir.atlasdb.persist.api.Persister;%0A%0A/**%0A * A %7B@link Persister%7D that uses an %7B@link ObjectMapper%7D to serialize and deserialize objects%0A * of type %7B@code T%7D.%0A */%0Apublic abstract class JacksonPersister%3CT%3E implements Persister%3CT%3E %7B%0A%0A    private final Class%3CT%3E typeRef;%0A    private final ObjectMapper mapper;%0A%0A    public JacksonPersister(Class%3CT%3E typeRef, ObjectMapper mapper) %7B%0A        this.typeRef = typeRef;%0A        this.mapper = mapper;%0A    %7D%0A%0A    @Override%0A    public final T hydrateFromBytes(byte%5B%5D input) %7B%0A        try %7B%0A            return mapper.readValue(input, typeRef);%0A        %7D catch (IOException e) %7B%0A            throw Throwables.propagate(e);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public final byte%5B%5D persistToBytes(T value) %7B%0A        try %7B%0A            return mapper.writeValueAsBytes(value);%0A        %7D catch (JsonProcessingException e) %7B%0A            throw Throwables.propagate(e);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public final Class%3CT%3E getPersistingClassType() %7B%0A        return typeRef;%0A    %7D%0A%0A%7D%0A

Add JacksonPersister shim