@Override protected void doExecute(InstallContext installContext) throws RepositoryException, TaskExecutionException { if (DEFAULT_ABS_PATH.equals(absPath)) { String query = String.format(SELECT_NODES_WITH_CERTAIN_VALUES, currentValue); NodeIterator nodeIterator = QueryUtil.search(workspaceName, query, Query.JCR_SQL2); while (nodeIterator.hasNext()) { Node node = nodeIterator.nextNode(); PropertyIterator iterator = node.getProperties(); while (iterator.hasNext()) { Property property = iterator.nextProperty(); if (property.getType() == PropertyType.STRING) { if (property.getString().equals(currentValue)) { property.setValue(newValue); } } } } } else { super.doExecute(installContext); } }