String[] subprofileNames = new String[0];
if (bindingsURI != null)
{
// Create bindings profile meta data
ProfileKey bindingsKey = new ProfileKey(bindingsName);
BasicProfileMetaData bindings = new FilteredProfileMetaData(
null, null, bindingsName);
bindings.setSource(createSource(new URI[]{ bindingsURI }, false));
addProfile(bindingsKey, bindings);
subprofileNames = new String[] { bindingsName };
}
// Create bootstrap profile meta data
ProfileKey bootstrapKey = new ProfileKey(bootstrapName);
ProfileMetaData bootstrap = createProfileMetaData(bootstrapName, false,
new URI[] { bootstrapURI }, subprofileNames );
addProfile(bootstrapKey, bootstrap);
subprofileNames = createSubprofileNames(subprofileNames, bootstrapName);
// Create deployers profile meta data
ProfileKey deployersKey = new ProfileKey(deployersName);
ProfileMetaData deployers = createProfileMetaData(
deployersName, false, new URI[] { deployersURI }, subprofileNames);
addProfile(deployersKey, deployers);
subprofileNames = createSubprofileNames(subprofileNames, deployersName);