protected void populateProfileRepository() throws Exception
{
if(getProfilesLocation() != null)
{
ProfilesMetaDataFactory metadataFactory = new ProfilesMetaDataFactory();
metadataFactory.parse(getProfilesLocation());
Map<String, ProfileMetaData> profiles = metadataFactory.getProfiles();
for(ProfileMetaData metaData : profiles.values())
{
profileRepository.getProfileRepository().registerMetaData(metaData);
}
}