@Override public void connectionNotification(String eventName,Object source){
  if (connectionAllowed(eventName)) {
    if (m_firstInput == null) {
      m_firstInput=source;
      m_firstInputConnectionType=eventName;
    }
 else {
      m_secondInput=source;
      m_secondInputConnectionType=eventName;
    }
  }
  if (m_firstInput != null && m_secondInput != null) {
    if (m_firstInputConnectionType.length() > 0 || m_secondInputConnectionType.length() > 0) {
      if (!m_firstInputConnectionType.equals("instance") && !m_secondInputConnectionType.equals("instance")) {
        m_incomingBatchConnections=true;
      }
 else {
        m_incomingBatchConnections=false;
      }
    }
 else {
      m_incomingBatchConnections=false;
    }
  }
}

@ Override public void connectionNotification ( String eventName , Object source ) { if ( connectionAllowed ( eventName ) ) { if ( m_firstInput == null ) { m_firstInput = source ; m_firstInputConnectionType = eventName ; } else { m_secondInput = source ; m_secondInputConnectionType = eventName ; } } if ( m_firstInput != null && m_secondInput != null ) { if ( m_firstInputConnectionType . length ( ) > 0 || m_secondInputConnectionType . length ( ) > 0 ) { if ( ! m_firstInputConnectionType . equals ( "instance" ) && ! m_secondInputConnectionType . equals ( "instance" ) ) { m_incomingBatchConnections = true ; } else { m_incomingBatchConnections = false ; } } else { m_incomingBatchConnections = false ; } } }
deals with a new connection
