@Override public boolean connectionAllowed(String eventName){
  return eventName.equals("dataSet") || eventName.equals("trainingSet") || eventName.equals("testSet");
}

@ Override public boolean connectionAllowed ( String eventName ) { return eventName . equals ( "dataSet" ) || eventName . equals ( "trainingSet" ) || eventName . equals ( "testSet" ) ; }
returns true if , at this time , the object will accept a connection via the named event
