Add refresh method when get configuration object if null
Reorganize factory classes