public void insertCollection(Session session, Node parentNode, CollectionDescriptor collectionDescriptor,
ManageableCollection collection) {
try {
doInsertCollection(session, parentNode, collectionDescriptor, collection);
} catch (ItemExistsException iee) {
throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
+ " of class " + collectionDescriptor.getClassDescriptor().getClassName() + ". An item already exists.", iee);
} catch (PathNotFoundException pnfe) {
throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
+ " of class " + collectionDescriptor.getClassDescriptor().getClassName(), pnfe);
} catch (VersionException ve) {
throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
+ " of class " + collectionDescriptor.getClassDescriptor().getClassName(), ve);
} catch (ConstraintViolationException cve) {
throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
+ " of class " + collectionDescriptor.getClassDescriptor().getClassName() + ". Constraint violation.", cve);
} catch (LockException le) {
throw new ObjectContentManagerException("Cannot insert collection field : " + collectionDescriptor.getFieldName()
+ " of class " + collectionDescriptor.getClassDescriptor().getClassName() + " on locked parent.", le);
} catch (RepositoryException re) {
throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Cannot insert collection field : "
+ collectionDescriptor.getFieldName() + " of class "
+ collectionDescriptor.getClassDescriptor().getClassName(), re);