STS-3537: fixed missing config reload for the JavaConfig case