if ("true".equalsIgnoreCase(System.getProperty(SLCodec.PRESERVE_JAVA_TYPES)) &&
( sad.type == Long.class ||
sad.type == long.class ||
sad.type == Double.class ||
sad.type == double.class)) {
schema.addFacet(slotName, new JavaTypeFacet(sad.type.getName()));
}
} else {
TermSchema ats = null;
if (sad.aggregateClass != null) {
// try to get a schema for the contained type