public static String propertiesToString(BaseProperties props){
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        try {
            props.store(baos, null);
        } catch (IOException e) {
            LOG.error("Caught IOException while trying to flush properties: " + e.getLocalizedMessage() + " because of: " + e.getCause());
        }
        return baos.toString();
    }