final RepositoryFile domainFile = getMetadataRepositoryFile( domainId );
if ( !overwrite && domainFile != null ) {
final String errorString =
messages.getErrorString( "PentahoMetadataDomainRepository.ERROR_0002_DOMAIN_ALREADY_EXISTS", domainId );
logger.error( errorString );
throw new DomainAlreadyExistsException( errorString );
}
// Check if this is valid xml
InputStream inputStream2 = null;
String xmi = null;