}
private void updateComponent(Component component, Component project, Map<Long, Component> componentsBySnapshotId, Map<Long, String> uuidByComponentId) {
String snapshotPath = component.getSnapshotPath();
StringBuilder moduleUuidPath = new StringBuilder();
Component lastModule = null;
if (!Strings.isNullOrEmpty(snapshotPath)) {
for (String s : Splitter.on(".").omitEmptyStrings().split(snapshotPath)) {
Long snapshotId = Long.valueOf(s);
Component currentComponent = componentsBySnapshotId.get(snapshotId);
if (currentComponent.getScope().equals(Scopes.PROJECT)) {
lastModule = currentComponent;
moduleUuidPath.append(currentComponent.getUuid()).append(".");
}
}
}
if (moduleUuidPath.length() > 0) {
// Remove last '.'