PropertyClause propertyClause)
throws DiscoveryException, ParseException {
LOGGER.finer("Adapting timeperiod PropertyClause...\n"+propertyClause);
// determine the discoverable target, set the underlying storable
Discoverable discoverable = propertyClause.getTarget();
if (discoverable == null) {
String sErr = "The PropertyClause.target is null.";
throw new DiscoveryException(sErr);
}
if (discoverable.getStorable() == null) {
String sErr = "The PropertyClause.target.storeable is null.";
throw new DiscoveryException(sErr);
} else {
Storeable storeable = (Storeable)discoverable.getStorable();
this.baseFieldName = storeable.getName();
if (this.baseFieldName.endsWith(".intersects")) {
this.inclusive = true;
this.baseFieldName = this.baseFieldName.substring(0,this.baseFieldName.length()-11);
} else if (this.baseFieldName.endsWith(".within")) {