This is the same as:
```scala
Try(p.getName().dropRight(FINISHED_VERSION_SUFFIX.length()).toLong)
```