code: protected void appendToResult( InternalStringBuilder result, String value )
      {
          if ( value == null || value.length() == 0 )
          {
              return;
          }
  
          if ( result.length() > 0 && result.charAt( result.length() - 1 ) == '/'
                  && value.charAt( 0 ) == '/' )
          {
              result.deleteCharAt( result.length() - 1 );
          }
          result.append( value );
      }
docs: of the URL