if (adapter == null)
{
final List<String> names = classAdapter.getPropertyNames();
final String className = activeClass.getName();
throw new UnknownValueException(String.format(
"Class %s does not contain a property (or public field) named '%s'.", className, propertyName),
new AvailableValues("Properties (and public fields)", names));
}
return adapter;
}