public Properties load(final InputStream inputStream) throws IOException {
  Validate.notNull(inputStream);
  final String rawContent=IOUtils.toString(inputStream,CharEncoding.UTF_8);
  parseProperties(rawContent.replaceAll(REGEX_COMMENTS,""));
  return this.properties;
}

public Properties load ( final InputStream inputStream ) throws IOException { Validate . notNull ( inputStream ) ; final String rawContent = IOUtils . toString ( inputStream , CharEncoding . UTF_8 ) ; parseProperties ( rawContent . replaceAll ( REGEX_COMMENTS , "" ) ) ; return this . properties ; }
load the properties from the stream . the implementation will handle comments properly by removing them before properties are loaded .
