code: public static long parse(String configuredMemorySize) throws IllegalArgumentException {
      MemorySize size = parseIncludingUnit(configuredMemorySize);
      return size.calculateMemorySizeInBytes();
    }
docs: Parse a String containing a human-readable memory size.
  
  @param configuredMemorySize the String containing a human-readable memory size.
  @return the memory size in bytes.
  @throws IllegalArgumentException thrown when the configured memory size cannot be parsed.