code: private void validateEventCollection(String eventCollection) {
          if (eventCollection == null || eventCollection.length() == 0) {
              throw new InvalidEventCollectionException("You must specify a non-null, " +
                      "non-empty event collection: " + eventCollection);
          }
          if (eventCollection.length() > 256) {
              throw new InvalidEventCollectionException("An event collection name cannot be longer than 256 characters.");
          }
      }
docs: Validates the name of an event collection.
  
  @param eventCollection An event collection name to be validated.
  @throws io.keen.client.java.exceptions.InvalidEventCollectionException If the event collection name is invalid. See Keen documentation for details.