(PR 49) Fixed PMD problem by extracting exception handling to a separate method.