code: public static boolean updatePomProperty(Properties properties, String name, Object value, boolean updated) {
          if (value != null) {
              Object oldValue = properties.get(name);
              if (!Objects.equal(oldValue, value)) {
                  getLOG().debug("Updating pom.xml property: " + name + " to " + value);
                  properties.put(name, value);
                  return true;
              }
          }
          return updated;
  
      }
docs: Updates the given maven property value if value is not null and returns true if the pom has been changed
  
  @return true if the value changed and was non null or updated was true