code: public Properties parsePropertiesString(String propertiesAsString) {
          final Properties p = new Properties();
          try (StringReader reader = new StringReader(propertiesAsString)) {
              p.load(reader);
          } catch (IOException e) {
              throw new IllegalArgumentException("Unable to parse .properties: " + propertiesAsString, e);
          }
          return p;
      }
docs: Converts String to Properties.
  @param propertiesAsString contents of .properties file.
  @return Properties as parsed.