Пример #1
0
 /** {@inheritDoc} */
 @Override
 public DataObjectCollection getCollection(String collectionName) {
   if (collectionName == null) {
     return null;
   }
   DataObjectCollection collection = null;
   // attempt to get it from the local attribute map (if any attributed defined locally)
   if (collections != null) {
     collection = collectionMap.get(collectionName);
   }
   // if we don't find one, but we have an embedded metadata object, check it
   if (collection == null && embedded != null) {
     collection = embedded.getCollection(collectionName);
     // but, ensure it's not on the removed attribute list
     if (collection != null
         && removedCollectionNames != null
         && removedCollectionNames.contains(collection.getName())) {
       collection = null;
     }
   }
   return collection;
 }