* @return the profile meta data.
*/
private ProfileMetaData createProfileMetaData(boolean hotDeployment, URI[] uris, String[] subProfiles)
{
// Create profile
BasicProfileMetaData metaData = new BasicProfileMetaData();
metaData.setDomain(getProfileDomain());
metaData.setServer(getProfileServer());
metaData.setName(getProfileName());
// Create profile sources
ProfileSourceMetaData source = createSource(uris, hotDeployment);
metaData.setSource(source);
List<SubProfileMetaData> profileList = new ArrayList<SubProfileMetaData>();
for(String subProfile : subProfiles)
{
BasicSubProfileMetaData md = new BasicSubProfileMetaData();
md.setName(subProfile);
profileList.add(md);
}
metaData.setSubprofiles(profileList);
return metaData;
}