Why not just pass the args from the main method straight to ExportUserActivityStream? For a stand-alone Java application that would be most natural.