log.debug("Name of CLient and Stream to be recorded: "+broadcastid);
//log.debug("Application.getInstance()"+Application.getInstance());
log.debug("Scope "+conn);
log.debug("Scope "+conn.getScope());
// Get a reference to the current broadcast stream.
ClientBroadcastStream stream = (ClientBroadcastStream) ScopeApplicationAdapter.getInstance()
.getBroadcastStream(conn.getScope(), broadcastid);
try {
// Save the stream to disk.
stream.saveAs(streamName, false);
} catch (Exception e) {
log.error("Error while saving stream: " + streamName, e);
}
}