Fix FindBugs warning of multi thread use