Source:
<code>private void structureDependencyHelper(String stInode) throws DotDataException, DotSecurityException{ Structure st = StructureCache.getStructureByInode(stInode); Host h = APILocator.getHostAPI().find(st.getHost(), user, false); hosts.addOrClean(st.getHost(), h.getModDate()); Folder f = APILocator.getFolderAPI().find(st.getFolder(), user, false); folders.addOrClean(st.getFolder(), f.getModDate()); try { WorkflowScheme scheme = APILocator.getWorkflowAPI().findSchemeForStruct(st); workflows.addOrClean(scheme.getId(), scheme.getModDate()); } catch (DotDataException e) { Logger.debug(getClass(), "Could not get the Workflow Scheme Dependency for Structure ID: " + st.getInode()); } List<Relationship> relations = RelationshipFactory.getAllRelationshipsByStructure(st); for (Relationship r : relations) { relationships.addOrClean( r.getInode(), r.getModDate()); if(!structures.contains(r.getChildStructureInode()) && config.getOperation().equals( Operation.PUBLISH)){ Structure struct = StructureCache.getStructureByInode(r.getChildStructureInode()); structures.addOrClean( r.getChildStructureInode(), struct.getModDate()); if(st!=null) structureDependencyHelper( r.getChildStructureInode() ); } if(!structures.contains(r.getParentStructureInode()) && config.getOperation().equals( Operation.PUBLISH)){ <START> Structure struct = StructureCache.getStructureByInode(r.getChildStructureInode()); <END> structures.addOrClean( r.getParentStructureInode(), struct.getModDate()); if(st!=null) structureDependencyHelper( r.getParentStructureInode() ); } } }</code><technical_language>I work parent structure. a copy&paste error</technical_language>

Target:
private void structureDependencyHelper(String stInode) throws DotDataException, DotSecurityException{ Structure st = StructureCache.getStructureByInode(stInode); Host h = APILocator.getHostAPI().find(st.getHost(), user, false); hosts.addOrClean(st.getHost(), h.getModDate()); Folder f = APILocator.getFolderAPI().find(st.getFolder(), user, false); folders.addOrClean(st.getFolder(), f.getModDate()); try { WorkflowScheme scheme = APILocator.getWorkflowAPI().findSchemeForStruct(st); workflows.addOrClean(scheme.getId(), scheme.getModDate()); } catch (DotDataException e) { Logger.debug(getClass(), "Could not get the Workflow Scheme Dependency for Structure ID: " + st.getInode()); } List<Relationship> relations = RelationshipFactory.getAllRelationshipsByStructure(st); for (Relationship r : relations) { relationships.addOrClean( r.getInode(), r.getModDate()); if(!structures.contains(r.getChildStructureInode()) && config.getOperation().equals( Operation.PUBLISH)){ Structure struct = StructureCache.getStructureByInode(r.getChildStructureInode()); structures.addOrClean( r.getChildStructureInode(), struct.getModDate()); if(st!=null) structureDependencyHelper( r.getChildStructureInode() ); } if(!structures.contains(r.getParentStructureInode()) && config.getOperation().equals( Operation.PUBLISH)){ Structure struct = StructureCache.getStructureByInode(r.getParentStructureInode()); structures.addOrClean( r.getParentStructureInode(), struct.getModDate()); if(st!=null) structureDependencyHelper( r.getParentStructureInode() ); } } }