}
public void setupRootModel(ModifiableRootModel rootModel) throws ConfigurationException {
String moduleRootPath = getContentEntryPath();
if (moduleRootPath != null) {
LocalFileSystem localFileSystem = LocalFileSystem.getInstance();
VirtualFile moduleContentRoot = localFileSystem.refreshAndFindFileByPath(FileUtil.toSystemIndependentName(moduleRootPath));
if (moduleContentRoot != null) {
ContentEntry contentEntry = rootModel.addContentEntry(moduleContentRoot);
List<Pair<String, String>> sourcePaths = getSourcePaths();
if (sourcePaths != null) {
for (Pair<String, String> sourcePath : sourcePaths) {
VirtualFile sourceRoot = localFileSystem.refreshAndFindFileByPath(FileUtil.toSystemIndependentName(sourcePath.first));
if (sourceRoot != null) {
contentEntry.addSourceFolder(sourceRoot, false, sourcePath.second);
}
}
}