adding synchronized to bean initialization to avoid multithreading conflicts