fault.setFaultString( "Invalid page number." );
fault .setFaultString( BirtResources .getString( ResourceConstants.ACTION_EXCEPTION_INVALID_PAGE_NUMBER ) );
	protected long getPageNumber( HttpServletRequest request, Oprand[] params,			String documentName ) throws RemoteException,			ReportServiceException	{		long pageNumber = -1;		if ( params != null && params.length > 0 )		{			for ( int i = 0; i < params.length; i++ )			{				if ( IBirtConstants.OPRAND_PAGENO.equalsIgnoreCase( params[i]						.getName( ) ) )				{					try					{						pageNumber = Integer.parseInt( params[i].getValue( ) );					}					catch ( NumberFormatException e )					{						pageNumber = -1;					}					InputOptions options = new InputOptions( );					options.setOption( InputOptions.OPT_REQUEST, request );					if ( pageNumber <= 0							|| pageNumber > getReportService( ).getPageCount( documentName, 									options, new OutputOptions( ) ) )					{						AxisFault fault = new AxisFault( );						fault.setFaultCode( new QName(								"DocumentProcessor.getPageNumber( )" ) ); //$NON-NLS-1$						fault.setFaultString( "Invalid page number." ); //$NON-NLS-1$						throw fault;					}					break;				}			}		}		return pageNumber;	}