code: private String processViewPropertySvgReference(final String viewProperty) throws IOException {
          // find start of value
          int indexOfColon = viewProperty.indexOf(':');
          if (indexOfColon > -1) {
              int indexOfValueStart = -1;
              int indexOfSQ = viewProperty.indexOf('\'',
                                                   indexOfColon + 1);
              int indexOfDQ = viewProperty.indexOf('"',
                                                   indexOfColon + 1);
              if (indexOfSQ > -1) {
                  indexOfValueStart = indexOfSQ;
              } else {
                  indexOfValueStart = indexOfDQ;
              }
              if (indexOfValueStart > -1) {
                  String viewValue = viewProperty.substring(indexOfValueStart + 1);
  
                  // find end of value
                  int indexOfValueEnd = -1;
                  indexOfSQ = viewValue.lastIndexOf('\'');
                  indexOfDQ = viewValue.lastIndexOf('"');
                  if (indexOfSQ > -1) {
                      indexOfValueEnd = indexOfSQ;
                  } else {
                      indexOfValueEnd = indexOfDQ;
                  }
                  if (indexOfValueEnd > -1) {
                      viewValue = viewValue.substring(0,
                                                      indexOfValueEnd);
                      if (viewValue.endsWith(SVG_FILE_SUFFIX)) {
                          // read svg file
                          String svgContents = getReferencedSvgFileContents(viewValue);
                          if (svgContents != null) {
                              String ignorableViewProperty = viewProperty.replace("\"view\"",
                                                                                  "\"_view_file\"");
                              StringBuilder newViewProperty = new StringBuilder(ignorableViewProperty).append(LINE_SEPARATOR);
                              newViewProperty.append(viewProperty.substring(0,
                                                                            indexOfValueStart));
                              newViewProperty.append("\"").append(svgContents).append("\",").append(LINE_SEPARATOR);
                              return newViewProperty.toString();
                          }
                      }
                  }
              }
          }
  
          // property not changed, return original property
          return viewProperty + LINE_SEPARATOR;
      }
docs: Replaces view="<file>.svg" properties of nodes with the contents of the
  referenced .svg files and adds a _view_file="<file>.svg" property.
  @param viewProperty
  @return
  @throws IOException