}
private static IDataModel initConfig(IDataModel model,
IProjectFacetVersion fv, Type type, String pjname)
throws CoreException {
FacetDataModelMap map = (FacetDataModelMap) model
.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
IDataModel configDM = (IDataModel) map
.get(fv.getProjectFacet().getId());
if (configDM == null) {
final Object config = fv.createActionConfig(type, pjname);
if (config == null || !(config instanceof IDataModel)) {
return null;
}
configDM = (IDataModel) config;
map.add(configDM);
}
configDM.setProperty(IFacetDataModelProperties.FACET_VERSION, fv);
return configDM;