public InputStream getInputStream() {
    InputStream is;
    String name = this.fileName == null ? DEFAULT_SCOM_CLUSTER_DEFINITION_FILENAME : this.fileName;

    try {
      is = this.getClass().getClassLoader().getResourceAsStream(name);

      if (is == null) {
        throw new IllegalStateException("Can't find the resource " + name + " in the classpath.");
      }
    } catch (Exception e) {
      String msg = "Caught exception reading " + name + ".";
      throw new IllegalStateException(msg, e);
    }
    return is;
  }
Get an input stream to the cluster definition file.

@return an input stream
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/scom/ClusterDefinitionProvider.java