@@ -0,0 +1,1862 @@
+package roart.common.inmemory.model;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.nio.charset.StandardCharsets;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport roart.common.constants.Constants;%0A%0Aimport org.apache.commons.codec.digest.DigestUtils;%0A%0Apublic class InmemoryUtil %7B%0A    private static Logger log = LoggerFactory.getLogger(InmemoryUtil.class);%0A%0A    public static boolean validate(String md5, String content) %7B%0A        String contentMd5 = DigestUtils.md5Hex(content.getBytes(StandardCharsets.ISO_8859_1) );%0A        if (!md5.equals(contentMd5)) %7B%0A            log.error(%22Md5 differs %7B%7D %7B%7D%22, md5, contentMd5);%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A    %0A    public static boolean validate(String md5, InputStream content) %7B%0A        String contentMd5;%0A        try %7B%0A            contentMd5 = DigestUtils.md5Hex(content);%0A        %7D catch (Exception e) %7B%0A            log.error(Constants.EXCEPTION, e);%0A            return false;%0A        %7D%0A        if (!md5.equals(contentMd5)) %7B%0A            log.error(%22Md5 differs %7B%7D %7B%7D%22, md5, contentMd5);%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A    %0A    public static byte%5B%5D convertWithCharset(String content) %7B%0A        return content.getBytes(StandardCharsets.ISO_8859_1);%0A    %7D%0A%0A    public static String convertWithCharset(byte%5B%5D bytes) %7B%0A        try %7B%0A            return new String(bytes, %22ISO_8859_1%22);%0A        %7D catch (Exception e) %7B%0A            log.error(Constants.EXCEPTION, e);%0A        %7D%0A        return null;%0A    %7D%0A%0A    public static String convertWithCharset(Path path) %7B%0A        try %7B%0A            return new String(Files.readAllBytes(path), %22ISO_8859_1%22);%0A        %7D catch (Exception e) %7B%0A            log.error(Constants.EXCEPTION, e);%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

Add utils for communication with small msg and data in memory (I243).