private void incrementQueueCount( )
throws ResourceException,
ResourceContextException
{
PrinterPortResource printerResource = (PrinterPortResource) getResourceContext( ).getResource( );
ResourceProperty printerJobProperties =
printerResource.getResourcePropertySet( ).get( PrinterPortPropertyQNames.QUEUED_JOB_COUNT );
XmlInteger queued = (XmlInteger) printerJobProperties.get( 0 );
BigInteger bigIntegerValue = queued.getBigIntegerValue( );
int count = bigIntegerValue.intValue( );
count++;
queued.setBigIntegerValue( BigInteger.valueOf( count ) );
}