}
}
private RuleBaseElementId getIdforFile(File artifact) throws RuleBaseException, SAXException, IOException,
ParserConfigurationException {
RuleBaseElementType type = getTypeFromFile(artifact);
String name = FilenameUtils.removeExtension(artifact.getName());
RuleBaseElementId id = new RuleBaseElementId(type, name);
if (artifact.exists() && type.equals(RuleBaseElementType.Process)) {
id.setPackageName(readPackageNameFromProcessFile(artifact));
}
return id;
}