code: public static NodeBean setPropsInNodeBean(final String path, final File flowFile,
        final Props prop) {
      final NodeBeanLoader loader = new NodeBeanLoader();
      try {
        final NodeBean nodeBean = loader.load(flowFile);
        final String[] pathList = path.split(Constants.PATH_DELIMITER);
        if (overridePropsInNodeBean(nodeBean, pathList, 0, prop)) {
          return nodeBean;
        } else {
          logger.error("Error setting props for " + path);
        }
      } catch (final Exception e) {
        logger.error("Failed to set props, error loading flow YAML file " + flowFile);
      }
      return null;
    }
docs: Sets props in node bean.
  
  @param path the flow or job path delimited by ":", e.g. "flow:subflow1:subflow2:job3"
  @param flowFile the flow yaml file
  @param prop the props to set
  @return the node bean