KER-233: added an util method to load the content of an input stream into a String and used it in different classes that need it