collectionDescriptor.setRefresh(true);
collectionDescriptor.setRefresh(false);
    private static void updateCollectionDescriptorWithCommonSettings(            final ClassDescriptor classDescriptor, Class persistentFieldClass, Role role,            String roleName, CollectionDescriptor collectionDescriptor) throws ClassNotFoundException {        collectionDescriptor.setItemClass(Class.forName(role.getType().getFullName()));        collectionDescriptor.setPersistentField(persistentFieldClass, roleName);        collectionDescriptor.setRefresh(true);        collectionDescriptor.setCollectionClass(OJBFunctionalSetWrapper.class);        collectionDescriptor.setCascadeRetrieve(false);        collectionDescriptor.setLazy(false);        classDescriptor.addCollectionDescriptor(collectionDescriptor);    }