remove doubleCheckedLocking as it is deprecated and breaking build
fixed pmd error - empty catch block