out = new ByteArrayOutputStream();
}else{
out=null;
}
if(null!=getSecondaryStream() && null!=out) {
teeout= new TeeOutputStream(out, getSecondaryStream());
} else if(null!= getSecondaryStream()){
teeout= getSecondaryStream();
}else if(null!=out){
teeout=out;
}else{
teeout=null;
}
if(null!=teeout){
tee = new TeeOutputStream(teeout, new KeepAliveOutputStream(System.out));
}else{
tee= new KeepAliveOutputStream(System.out);
}
InputStream istream = null ;