OPAL-2195

- Mapped RuntimeException to provide a general error message.
- Fixed a PMD error.