// Sequence type
if (java.util.List.class.isAssignableFrom(clazz) ||
jade.util.leap.List.class.isAssignableFrom(clazz) ||
(clazz.isArray() && clazz != byte[].class)) {
schema = new AggregateSchema(BasicOntology.SEQUENCE, elementSchema);
}
// Set type
else if (java.util.Set.class.isAssignableFrom(clazz) ||
jade.util.leap.Set.class.isAssignableFrom(clazz)) {
schema = new AggregateSchema(BasicOntology.SET, elementSchema);
}
return schema;
}