public ConfigurationManager(InputStream inputStream) throws Exception {
// Logger first
log = LoggerFactory.getLogger(ConfigurationManager.class);
IBindingFactory bfact = BindingDirectory.getFactory(WebuiConfiguration.class);
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
WebuiConfiguration config = (WebuiConfiguration) uctx.unmarshalDocument(inputStream, null);
ClassLoader cl = Thread.currentThread().getContextClassLoader();
if (config.getAnnotationClasses() != null) {
for (String annotationClass : config.getAnnotationClasses()) {
// process annotation and get the Component
Component[] components = annotationToComponents(cl, annotationClass);