code: public static String replaceParameters(final InputStream stream) {
          String content = IOUtil.asStringPreservingNewLines(stream);
          return resolvePlaceholders(content);
      }
docs: Method that takes an inputstream, read it preserving the end lines, and subtitute using commons-lang-3 calls
  the variables, first searching as system properties vars and then in environment var list.
  In case of missing the property is replaced by white space.
  @param stream
  @return