public static void main( String[] args )
	{
		WorkBookHandle book = null;
		try
		{ // generate a PDF and confirm
			// load the current file and output it to same directory
			book = new WorkBookHandle( System.getProperty( "user.dir" ) + "/docs/samples/Input_CSV/contacts.csv" );
			System.out.println( book.getStats() );
			log.info( "Successfully read CSV into spreadsheet: " + book );
		}
		catch( Exception e )
		{
			log.error( "Spreadsheet_CSV_Input failed.", e );
		}

		// Write out the spreadsheet as CSV -- 
		try
		{
			WorkSheetHandle wsh = null;
			wsh = book.getWorkSheet( 0 );
			StringBuffer arr = new StringBuffer();
			// return WorkBookCommander.returnXMLErrorResponse("PluginSheet.get() failed: "+ex.toString());
			RowHandle[] rwx = wsh.getRows();
			for( int i = 0; i < rwx.length; i++ )
			{
				RowHandle r = rwx[i];
				try
				{
					CellHandle[] chx = r.getCells();
					for( int t = 0; t < chx.length; t++ )
					{
						arr.append( "'" + chx[t].getFormattedStringVal() + "'," );
					}
					arr.setLength( arr.length() - 1 );
					arr.append( "\r\n" );
				}
				catch( Exception ex )
				{
					log.error( "Spreadsheet CSV output failed to fetch row:" + i, ex );
				}
			}
			System.out.println( "WorkBook:" + book + " CSV output: " + arr.toString() );
		}
		catch( Exception e )
		{
			log.error( "Spreadsheet CSV output failed: " + e.toString() );
		}
	}