MasterContext defaultContext = type.getAnnotation(MasterContext.class);
for (Field field : type.getDeclaredFields()) {
MasterContext fieldContext = field.getAnnotation(MasterContext.class);
String contextName = fieldContext != null ? fieldContext.value() :
defaultContext != null ? defaultContext.value() : "local";
ConfigProperties configProperties2 = configProperties.addToScope(contextName);
String uri = configProperties2.get("uri");
DataStore dataStore = acquireDataStore(contextName, uri, contextName.equals(nodeName) ? ModelMode.MASTER : ModelMode.READ_ONLY);
dataStore.injectField(model, field);
}
}
} catch (IllegalAccessException e) {