/** * {@inheritDoc} */ @Override public void execute(InstallContext installContext) { try { final Session session = installContext.getJCRSession(workspaceName); final Node node = SessionUtil.getNode(session, nodePath); PropertyUtil.setProperty(node, propertyName, this.newValue); } catch (Throwable t) { final String msg = format("Unable to set property \"{0}\" to value \"{1}\" on node \"{2}\".", propertyName, newValue, nodePath); installContext.error(msg, t); } } }