if (args[1]!=null) {
if (args.length>1) {
    public static void main(String args[]) {	BWSDocument docToRewrite=new BWSDocument();		try {	    docToRewrite.readDocumentFromURL(args[0]);	    // write to standard error	    System.out.println(docToRewrite.toString());	} catch (Exception e) {	    // write to standard error	    System.out.println("[Error] Exception while building document");	}	docToRewrite.getScriptNames();	docToRewrite.rewriteScriptCalls();		// if a second parameter is given, write the output to a file	// with the given name	if (args[1]!=null) {	    String fileName=args[1];	    // open file and write (not implementet)	} else {	    // print file to stdOut	    docToRewrite.printDocumentSource();	}    }