/** * Finds collection id in archive object. * @param archiveObjId * @return collection id * @throws IndeterminateException */ protected String findCollectionTagInArchive(String archiveObjId) throws IndeterminateException { try { ArchiveObjectFacade archObjFacade = archiveFacade.getObject( new YaddaObjectID(archiveObjId), new String[0], false); for (String currentTag : archObjFacade.getTags()) { if (currentTag.startsWith(ACLConstants.COLLECTION_TAG_PREFIX)) { return currentTag; } } return null; } catch (ServiceException e) { throw new IndeterminateException("exception occured when " + "finding archive object for id: " + archiveObjId, e); } }