code: private Properties parseProperties(AbstractBlock part, String attributeName) {
          Properties properties = new Properties();
          Object attribute = part.getAttributes().get(attributeName);
          if (attribute == null) {
              return properties;
          }
          Scanner propertiesScanner = new Scanner(attribute.toString());
          propertiesScanner.useDelimiter(";");
          while (propertiesScanner.hasNext()) {
              String next = propertiesScanner.next().trim();
              if (next.length() > 0) {
                  Scanner propertyScanner = new Scanner(next);
                  propertyScanner.useDelimiter("=");
                  String key = propertyScanner.next().trim();
                  String value = propertyScanner.next().trim();
                  properties.setProperty(key, value);
              }
          }
          return properties;
      }
docs: Parse properties from an attribute.
  
  @param part
  The content part containing the attribute.
  @param attributeName
  The attribute name.
  @return The properties.