code: public static final String read(String name, ClassLoader classLoader) throws IOException {
          if (ApplicationContext.isCloudFoundry()) {
              return System.getenv("mdw_" + name.substring(0, name.lastIndexOf('.')));
          }
          else {
              InputStream stream = FileHelper.readFile(name, classLoader);
              if (stream == null)
                  stream = FileHelper.readFile(name, classLoader);
              if (stream == null) {
                  return null;
              }
              else {
                  BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
                  try {
                      StringBuffer config = new StringBuffer();
                      String line;
                      while ((line = reader.readLine()) != null) {
                          if (!line.matches("^\\s*//.*$"))
                              config.append(line).append("\n");
                      }
                      return config.toString();
                  }
                  finally {
                      reader.close();
                  }
              }
          }
      }
docs: Strips out comment lines (where first non-whitespace is //).
  Does not support multi-line comments.