class JacksonUtil {

    public static JsonNode readTree(ObjectMapper objectMapper, byte[] bytes) {
        try {
            return objectMapper.readTree(bytes);
        } catch (MismatchedInputException | JsonParseException e) {
            throw new DataConversionException(INPUT_MISMATCH_ERROR_MESSAGE, e);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }

    private  JacksonUtil();

}