Replaced static initialization block by static method.