@Override public void execute(InstallContext ctx) { try { final Session session = ctx.getJCRSession(workspaceName); final Node node = session.getNode(nodePath); checkAndModifyPropertyValue(ctx, node, propertyName, expectedCurrentValues, newValue); } catch (RepositoryException e) { ctx.error(format("Could not check property {0} of node at {1}. Please create it with value {2}.", propertyName, nodePath, newValue), e); } } }