| | |
| | | validateRelationDefinition(r); |
| | | Driver ctx = getDriver(); |
| | | try { |
| | | return ctx.hasManagedObject(path, r); |
| | | return ctx.managedObjectExists(path.child(r)); |
| | | } catch (ManagedObjectNotFoundException e) { |
| | | throw new ConcurrentModificationException(); |
| | | } |
| | |
| | | Driver ctx = getDriver(); |
| | | |
| | | try { |
| | | ctx.getManagedObject(path); |
| | | } catch (DefinitionDecodingException e) { |
| | | // Ignore. |
| | | } catch (ManagedObjectDecodingException e) { |
| | | // Ignore. |
| | | if (!ctx.managedObjectExists(path)) { |
| | | throw new ConcurrentModificationException(); |
| | | } |
| | | } catch (ManagedObjectNotFoundException e) { |
| | | throw new ConcurrentModificationException(); |
| | | } |