fixed null pointer exceptions (spring context and properties)