@Override public boolean connectionAllowed(String eventName){
  if (m_firstInput != null && m_secondInput != null) {
    return false;
  }
  if (m_firstInput == null || m_secondInput == null) {
    if (m_firstInput != null) {
      if (m_firstInputConnectionType.equals("instance") && !eventName.equals("instance")) {
        return false;
      }
 else       if (!m_firstInputConnectionType.equals("instance") && eventName.equals("instance")) {
        return false;
      }
      return true;
    }
 else     if (m_secondInput != null) {
      if (m_secondInputConnectionType.equals("instance") && !eventName.equals("instance")) {
        return false;
      }
 else       if (!m_secondInputConnectionType.equals("instance") && eventName.equals("instance")) {
        return false;
      }
      return true;
    }
    return true;
  }
  return false;
}

@ Override public boolean connectionAllowed ( String eventName ) { if ( m_firstInput != null && m_secondInput != null ) { return false ; } if ( m_firstInput == null || m_secondInput == null ) { if ( m_firstInput != null ) { if ( m_firstInputConnectionType . equals ( "instance" ) && ! eventName . equals ( "instance" ) ) { return false ; } else if ( ! m_firstInputConnectionType . equals ( "instance" ) && eventName . equals ( "instance" ) ) { return false ; } return true ; } else if ( m_secondInput != null ) { if ( m_secondInputConnectionType . equals ( "instance" ) && ! eventName . equals ( "instance" ) ) { return false ; } else if ( ! m_secondInputConnectionType . equals ( "instance" ) && eventName . equals ( "instance" ) ) { return false ; } return true ; } return true ; } return false ; }
returns true if the named connection can be made at this time
