Made BasicActivity serializable, because it is required by ontology
filter.