code: public static void addPropertiesToSpec(ModuleSpec.Builder moduleSpecBuilder, Map<String, String> properties) {
          for (Entry<String, String> entry : properties.entrySet()) {
              moduleSpecBuilder.addProperty(entry.getKey(), entry.getValue());
          }
      }
docs: Add properties to the {@link ModuleSpec}
  
  @param moduleSpecBuilder builder to populate
  @param properties properties to add