ConfigurationType root = doc.addNewConfiguration();
root.setConfigId("SecurityRealm-"+data.getName());
// Use a parentId of null to pick up the default
// Dependencies
if(data.getJar() != null) {
DependencyType jar = root.addNewDependency();
jar.setUri(data.getJar());
}
// Build the realm GBean
GbeanType realm = root.addNewGbean();
realm.setName(data.getName());