You can directly use

```java
try {
   return new ECGPXParser(…);
}
```