return new FilteredProfile(key, createURIs(metaData), subProfiles, getDeploymentNames(metaData));
}
protected URI[] createURIs(ProfileMetaData metaData) throws URISyntaxException
{
ProfileSourceMetaData profileSource = metaData.getSource();
if(profileSource == null)
throw new IllegalArgumentException("Null profile source.");
List<URI> uris = new ArrayList<URI>();
for(String source : profileSource.getSources())
{
URI uri = new URI(source);
uris.add(uri);
}
return uris.toArray(new URI[uris.size()]);