@Override public boolean connectionAllowed(String eventName){
  if (eventName.equals("trainingSet") && m_listenees.containsKey(eventName)) {
    return false;
  }
  return true;
}

@ Override public boolean connectionAllowed ( String eventName ) { if ( eventName . equals ( "trainingSet" ) && m_listenees . containsKey ( eventName ) ) { return false ; } return true ; }
returns true if , at this time , the object will accept a connection with respect to the named event
