} catch (URISyntaxException e) {
throw new IllegalStateException("Can't resolve keystore path: "+e.getMessage());
}
data.setReferencePattern("ServerInfo", kernel.getAbstractNameFor(serverInfo));
data.setAttribute("keystoreName", name);
EditableConfigurationManager mgr = ConfigurationUtil.getEditableConfigurationManager(kernel);
if(mgr != null) {
try {
mgr.addGBeanToConfiguration(myName.getArtifact(), data, true);
return (KeystoreInstance) kernel.getProxyManager().createProxy(aName, KeystoreInstance.class);
} catch (InvalidConfigException e) {
log.error("Should never happen", e);
throw new IllegalStateException("Unable to add Keystore GBean ("+e.getMessage()+")");
} finally {