anchor.diff:  
       org.wso2.carbon.event.simulator.stub.types.CSVFileInfoDto[] csvFileInfoDtosArray=stub.getAllCSVFileInfo();
       org.wso2.carbon.event.simulator.stub.types.DataSourceTableAndStreamInfoDto[] dataSourceTableAndStreamInfoDtoArray = stub.getAllDataSourceTableAndStreamInfo();
  +
  +    String streamId = "";
  +    if(null != request.getParameter("streamId")){
  +        streamId = request.getParameter("streamId");
  +    }
  +
   %>
   
   <script type="text/javascript">
       jQuery(document).ready(function() {
           document.getElementById("fileArea").style.display = "inline";
           document.getElementById("dataSourceArea").style.display = "none";
  -        document.getElementById("fileRadioButton").checked = true;
       });
       function changeView(view) {
           var plain = "fileArea";
  
positive.code:     <div id="workArea">
      <h2><fmt:message key="event.stream.simulator"/> </h2>
      <br>
      <h4 style="color: #0D4d79"><fmt:message key="send.multiple.events"/>
      </h4>
          <div id="fileArea">
              <form name="csvFileForm" id="csvFileForm" method="post" action="../../fileupload/csv" enctype="multipart/form-data"
                    target="_self"  >
  
negative.code:                                         <select name="EventStreamID" id="EventStreamID2" onload="showEventPropertiesForSimulator()"
                                                  onchange="showEventPropertiesForSimulator()">
  
                                              <%if (eventInfoArray == null) {
                                              %>
                                                  <option value="No Event Stream Definitions"><fmt:message key="no.event.stream.definition"/>
                                                  </option>
                                              <%}else {%>
  
                                                  <option value="select">select event stream
                                                  </option>
                                                  <%for (int i = 0; i < eventInfoArray.length; i++) {
                                                      String streamName = eventInfoArray[i].getStreamName();
                                                      String streamVersion = eventInfoArray[i].getStreamVersion();
                                                      if(streamId.equalsIgnoreCase(streamName + ":" + streamVersion)){%>
                                                          <option value="<%=eventInfoArray[i].getStreamName()%>" selected ><%=streamName+":"+streamVersion%>
                                                          </option>
                                                      <%}else{%>
                                                          <option value="<%=eventInfoArray[i].getStreamName()%>"><%=streamName+":"+streamVersion%>
                                                          </option>
                                                      <%}
                                                  }
                                              }%>
                                          </select>
                                      </td>
                                  </tr>
  