con.addDefaultBasicAuthorization(siena_obj.getUsername(), siena_obj.getPassword());
if (siena_obj.getUsername() != null && siena_obj.getPassword() != null) { try { con.addDefaultBasicAuthorization(siena_obj.getUsername(), siena_obj.getPassword()); } catch (Exception e) {  }
    private HTTPResponse getStream(String object) {	try {	    URL dest = makeURLObj(object);	    if (dest == null)		return null;	    HTTPConnection con = new HTTPConnection(dest);	    con.setAllowUserInteraction(false);	    //if (siena_obj.getRealm() != null)	    //	con.addBasicAuthorization(siena_obj.getRealm(), siena_obj.getUsername(), siena_obj.getPassword());		con.addDefaultBasicAuthorization(siena_obj.getUsername(), siena_obj.getPassword());	    rsp = con.Get(dest.getPath());	    if (rsp.getStatusCode() >= 300 && rsp.getStatusCode() < 400) {		System.err.println("Received Error: "+rsp.getReasonLine());		System.err.println(new String(rsp.getData()));		return null;	    } else {		returned = new DataInputStream(rsp.getInputStream());		return rsp;	    }	} catch (IOException ioe) {	    System.err.println(ioe.toString());	    return null;	}	catch (ModuleException me) {	    System.err.println("Error handling request: " + me.getMessage());	    return null;	}    }