private String doExportString( String text ) {
        Matcher localMatcher = LOCALHOST_REGEX.matcher( text );
        if ( localMatcher.matches() ) {
            return localMatcher.group( 1 ) + host_ + localMatcher.group( 3 );
        }
        else if ( exportFiles_ && FILE_REGEX.matcher( text ).matches() ) {
            try {
                URL fileUrl = new URL( text );
                String path = fileUrl.getPath();
                if ( File.separatorChar != '/' ) {
                    path = path.replace( '/', File.separatorChar );
                }
                File file = new File( path );
                if ( file.canRead() && ! file.isDirectory() ) {
                    URL expUrl = UtilServer.getInstance()
                                           .getMapperHandler()
                                           .addLocalUrl( fileUrl );
                    if ( expUrl != null ) { 
                        return expUrl.toString();
                    }
                }
            }
            catch ( MalformedURLException e ) {
                // not a URL at all - don't attempt to export it
            }
            catch ( IOException e ) {
                // something else went wrong - leave alone
            }
            return text;
        }
        else {
            return text;
        }
    }