private static void appendName(InternalQName name,
                                   LocationFactory resolver,
                                   StringBuilder b)
            throws RepositoryException {
        boolean quote = name.getName().indexOf(' ') > -1;
        if (quote) {
            b.append('"');
        }
        b.append(resolver.createJCRName(name).getAsString());
        if (quote) {
            b.append('"');
        }
    }
private static void appendName ( InternalQName name , LocationFactory resolver , StringBuilder b ) throws RepositoryException { boolean quote = name . getName ( ) . indexOf ( ' ' ) > - 1 ; if ( quote ) { b . append ( '"' ) ; } b . append ( resolver . createJCRName ( name ) . getAsString ( ) ) ; if ( quote ) { b . append ( '"' ) ; } }
Appends the <code>name</code> to the <code>StringBuilder</code>
<code>b</code> using the <code>NamespaceResolver</code>
<code>resolver</code>. The <code>name</code> is put in double quotes
if the local part of <code>name</code> contains a space character.

@param name     the <code>Name</code> to print.
@param resolver to resolve <code>name</code>.
@param b        where to output the <code>name</code>.
@throws RepositoryException