Configuration build(String[] args, Map<String, Object> properties) {
String id = getBusId(args, properties);
ConfigurationBuilder builder = ConfigurationBuilderFactory.getBuilder(null);
Configuration c = builder.getConfiguration(BUS_CONFIGURATION_URI, id);
if (null == c) {
c = builder.buildConfiguration(BUS_CONFIGURATION_URI, id);
}
return c;
}
private static String getBusId(String[] args, Map<String, Object> properties) {