File f = new File("src/resources/parsing-tests/");
File one = new File(f, "config/profiles");
File two = new File(f, "common/profiles");
//
AbstractBootstrapProfileFactory profileFactory = new XmlProfileFactory(
new URI[] { one.toURI(), two.toURI() });
profileFactory.setProfileFactory(createProfileFactory());
// Clear jar suffixes.
JarUtils.clearSuffixes();
// A list of profile keys
List<ProfileKey> keys = new ArrayList<ProfileKey>();
// Parse
Collection<Profile> profiles = profileFactory.createProfiles(new ProfileKey("default"), null);
for(Profile profile : profiles)
{
// Register
profileService.registerProfile(profile);
ProfileKey key = profile.getKey();