Boolean allowPage = (Boolean) params.get( ALLOW_PAGE_KEY ); if ( PDF.equalsIgnoreCase( format ) ) { return createURL( "run", report, format, true, resourceFolder ); } if ( servletName == null || servletName.trim( ).length( ) <= 0 ) { if ( allowPage == null ) servletName = "frameset"; else { servletName = allowPage.booleanValue( ) ? "frameset" : "run"; } }
	private static String createURL( String report, Map params )	{		if ( params == null || params.isEmpty( ) )			return createURL( null, report, null, true, null );		String servletName = (String) params.get( SERVLET_NAME_KEY );		String format = (String) params.get( FORMAT_KEY );		String resourceFolder = (String) params.get( RESOURCE_FOLDER_KEY );		return createURL( servletName, report, format, true, resourceFolder );	}