instance = (Instance) instanceSelector.select(instanceConf.getAttribute("impl"));
Configuration builderConf = instanceConf.getChild("preceptor");
if (builderConf != null) {
ComponentSelector preceptorBuilderSelector = null;
PreceptorBuilder preceptorBuilder = null;
try {
preceptorBuilderSelector = (ComponentSelector) manager.lookup(PreceptorBuilder.ROLE + "Selector");
preceptorBuilder = (PreceptorBuilder) preceptorBuilderSelector.select(builderConf.getAttribute("impl"));
String uri = builderConf.getAttribute("uri");
getLogger().debug("building preceptor from [" + String.valueOf(uri) + "]");
//FIXME: use a resolver here
Preceptor newPreceptor = preceptorBuilder.buildPreceptor(new URL(uri));
instance.setPreceptor( newPreceptor );
}
catch(ComponentException e) {
if(preceptorBuilderSelector != null) {