static public InputStream findClusterXSLSchema(String _clusterXSLSchema) throws ClusterConfigurationException {
  String schemaNameToBeUsed=_clusterXSLSchema;
  if (schemaNameToBeUsed.equalsIgnoreCase(ClusterXML.CLUSTER_SCHEMA_NAME_PARTITIONED_SYNC2BACKUP))   schemaNameToBeUsed=ClusterXML.CLUSTER_SCHEMA_NAME_PARTITIONED;
  InputStream schemaInputStream;
  String schemaFilePath=Constants.Container.CONTAINER_CONFIG_DIRECTORY + "/" + Constants.Schemas.SCHEMAS_FOLDER+ "/"+ schemaNameToBeUsed+ ClusterXML.CLUSTER_SCHEMA_XSL_FILE_SUFFIX;
  schemaInputStream=getResourceStream(schemaFilePath);
  if (schemaInputStream != null) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.fine("Loaded the cluster xsl schema < " + getResourceURL(schemaFilePath) + " > for the cluster config setup.");
    }
    return schemaInputStream;
  }
 else {
    String missingSchemaMsg="Could not find the cluster xsl schema file: " + _clusterXSLSchema;
    throw new ClusterConfigurationException(missingSchemaMsg);
  }
}

static public InputStream findClusterXSLSchema ( String _clusterXSLSchema ) throws ClusterConfigurationException { String schemaNameToBeUsed = _clusterXSLSchema ; if ( schemaNameToBeUsed . equalsIgnoreCase ( ClusterXML . CLUSTER_SCHEMA_NAME_PARTITIONED_SYNC2BACKUP ) ) schemaNameToBeUsed = ClusterXML . CLUSTER_SCHEMA_NAME_PARTITIONED ; InputStream schemaInputStream ; String schemaFilePath = Constants . Container . CONTAINER_CONFIG_DIRECTORY + "/" + Constants . Schemas . SCHEMAS_FOLDER + "/" + schemaNameToBeUsed + ClusterXML . CLUSTER_SCHEMA_XSL_FILE_SUFFIX ; schemaInputStream = getResourceStream ( schemaFilePath ) ; if ( schemaInputStream != null ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "Loaded the cluster xsl schema < " + getResourceURL ( schemaFilePath ) + " > for the cluster config setup." ) ; } return schemaInputStream ; } else { String missingSchemaMsg = "Could not find the cluster xsl schema file: " + _clusterXSLSchema ; throw new ClusterConfigurationException ( missingSchemaMsg ) ; } }
look for the requested cluster xsl schema file in the resourcebundle ( classpath ) under < ee home dir > / config / schemas / < reqested_schema_name > - cluster - schema . xsl . if it does no find it in the disk ( the default ) it looks for it in the jspaces . jar , in same path . if the requested schema file does not exist in the disk config / schemas dir . . in this case we throw exception ( which does not interrupt the system load but acts as a warning ) note that the < com . gs . home > must be part of the classpath , in this case .
