protected void resolveFault(Object object) throws PropertyException {
try {
Persistent persistent = (Persistent) object;
ObjectContext context = persistent.getObjectContext();
if (context != null) {
context.prepareForAccess(persistent, getName(), false);
}
}
catch (ClassCastException e) {
throw new PropertyException("Object is not a Persistent: '"
+ object.getClass().getName()