logger.debug( "storeDomain(inputStream, " + domainId + ", " + overwrite + ")" );
if ( null == inputStream ) {
throw new IllegalArgumentException();
}
if ( StringUtils.isEmpty( domainId ) ) {
throw new DomainIdNullException( messages
.getErrorString( "PentahoMetadataDomainRepository.ERROR_0001_DOMAIN_ID_NULL" ) );
}
// Check to see if the domain already exists
final RepositoryFile domainFile = getMetadataRepositoryFile( domainId );