Source:
<code>public void index(RepositoryObject repoObj, DocumentIndexingPackage parent) throws IndexingException { PID pid = repoObj.getPid(); DocumentIndexingPackage dip = null; try { if (this.action.getUpdateDelay() > 0) { Thread.sleep(this.action.getUpdateDelay()); } <START> dip = this.action.getDocumentIndexingPackage(repoObj.getPid(), parent); <END> if (dip == null) { throw new IndexingException("No document indexing package was retrieved for " + pid); } this.action.getPipeline().process(dip); if (addDocumentMode) { this.action.getSolrUpdateDriver().addDocument(dip.getDocument()); } else { this.action.getSolrUpdateDriver().updateDocument("set", dip.getDocument()); } this.updateRequest.incrementChildrenProcessed(); } catch (InterruptedException e) { log.warn("Indexing of was interrupted", pid); return; } catch (UnsupportedContentModelException e) { log.info("Invalid content model on object {}, skipping its children", pid, e); return; } catch (OrphanedObjectException e) { log.info("Object was orphaned, skipping its children", pid, e); return; } catch (IndexingException e) { log.warn("Failed to index {}", pid, e); } catch (Exception e) { throw new IndexingException("An unexpected exception occurred while indexing " + pid.toString(), e); } finally { if (dip != null) { dip.setParentDocument((DocumentIndexingPackage) null); } } if (dip != null) { if (repoObj instanceof ContentContainerObject) { ContentContainerObject containerObj = (ContentContainerObject) repoObj; List<ContentObject> children = containerObj.getMembers(); if (children != null && children.size() > 0) { this.indexChildren(dip, children); } } } }</code><technical_language>pid variable here, method call</technical_language>

Target:
public void index(RepositoryObject repoObj, DocumentIndexingPackage parent) throws IndexingException { PID pid = repoObj.getPid(); DocumentIndexingPackage dip = null; try { if (this.action.getUpdateDelay() > 0) { Thread.sleep(this.action.getUpdateDelay()); } dip = this.action.getDocumentIndexingPackage(pid, parent); if (dip == null) { throw new IndexingException("No document indexing package was retrieved for " + pid); } this.action.getPipeline().process(dip); if (addDocumentMode) { this.action.getSolrUpdateDriver().addDocument(dip.getDocument()); } else { this.action.getSolrUpdateDriver().updateDocument("set", dip.getDocument()); } this.updateRequest.incrementChildrenProcessed(); } catch (InterruptedException e) { log.warn("Indexing of was interrupted", pid); return; } catch (UnsupportedContentModelException e) { log.info("Invalid content model on object {}, skipping its children", pid, e); return; } catch (OrphanedObjectException e) { log.info("Object was orphaned, skipping its children", pid, e); return; } catch (IndexingException e) { log.warn("Failed to index {}", pid, e); } catch (Exception e) { throw new IndexingException("An unexpected exception occurred while indexing " + pid.toString(), e); } finally { if (dip != null) { dip.setParentDocument((DocumentIndexingPackage) null); } } if (dip != null) { if (repoObj instanceof ContentContainerObject) { ContentContainerObject containerObj = (ContentContainerObject) repoObj; List<ContentObject> children = containerObj.getMembers(); if (children != null && children.size() > 0) { this.indexChildren(dip, children); } } } }