spring: patch naive static initialization