private static AdministrationConfiguration configurationInstance(final Class configurationClass) {
return (AdministrationConfiguration) BeanUtils.instantiateClass(configurationClass);
}
private static AdministrationConfiguration autowiredConfigurationInstance(final Class configurationClass, AutowireCapableBeanFactory beanFactory) {
final AdministrationConfiguration configurationInstance = configurationInstance(configurationClass);
beanFactory.autowireBean(configurationInstance);
return configurationInstance;
}