anchor.diff:                                          <select name="EventStreamID" id="EventStreamID2" onload="showEventPropertiesForSimulator()"
                                                   onchange="showEventPropertiesForSimulator()">
   
  -                                            <%if (eventInfoArray == null) {
  +                                            <%
  +                                                if (eventInfoArray == null) {
                                               %>
  -                                                <option value="No Event Stream Definitions"><fmt:message key="no.event.stream.definition"/>
  -                                                </option>
  -                                            <%}else {%>
  +                                            <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%>
  +                                                <%
  +                                                    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>
  -                                                    <%}else{%>
  -                                                        <option value="<%=eventInfoArray[i].getStreamName()%>">
  -                                                            <%=streamName+":"+streamVersion%>
  -                                                        </option>
  -                                                    <%}
  -                                                }
  -                                            }%>
  +                                                        <%
  +                                                        }
  +                                                    }
  +                                                }%>
                                           </select>
                                       </td>
                                   </tr>
  
positive.code:                                                 <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>
                                                      <%}
                                                  }
                                                  if(!streamId.equalsIgnoreCase("")){%>
                                                      <script>
                                                          showEventProperties();
                                                      </script>
  
negative.code: <%--
    ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
    ~
    ~ WSO2 Inc. licenses this file to you under the Apache License,
    ~ Version 2.0 (the "License"); you may not use this file except
    ~ in compliance with the License.
    ~ You may obtain a copy of the License at
    ~
    ~     http://www.apache.org/licenses/LICENSE-2.0
    ~
    ~ Unless required by applicable law or agreed to in writing,
    ~ software distributed under the License is distributed on an
    ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    ~ KIND, either express or implied.  See the License for the
    ~ specific language governing permissions and limitations
    ~ under the License.
    --%>
  <%@ page import="org.wso2.carbon.event.simulator.stub.EventSimulatorAdminServiceStub" %>
  <%@ page import="org.wso2.carbon.event.simulator.ui.EventSimulatorUIUtils" %>
  