uses = new ArrayList<DocumentFacade>(relist.size());
for (Iterator<Publication> i = relist.iterator(); i.hasNext();) {
Publication used = i.next();
- Integer index = used.getIndex();
+ long index = used.getIndex();
DocumentFacade facade = OpenObject.docpres.get(index);
if (facade == null) {
facade = new DocumentFacade(owner, used, getProjectSettings(), getPublicationService());