RepositoryFile schema =
repository.getFile( ETC_MONDRIAN_JCR_FOLDER + RepositoryFile.SEPARATOR + catalogName + RepositoryFile.SEPARATOR
+ "schema.xml" );
IRepositoryFileData data =
new StreamConverter().convert(
repoFileBundle.getInputStream(), repoFileBundle.getCharset(), repoFileBundle.getMimeType() );
if ( schema == null ) {
repository.createFile( catalog.getId(), repoFileBundle.getFile(), data, null );
} else {
repository.updateFile( schema, data, null );