} else if (adaptable instanceof Rule) {
return adaptRuleTo((Rule) adaptable, type);
} else if (adaptable instanceof RuleAtom) {
return adaptRuleAtomTo((RuleAtom) adaptable, type);
} else {
throw new UnavailableRuleObjectException("The adaptable class " + adaptable.getClass()
+ " is not supported by the adapter " + this.getClass());
}
}