Set<ValidationProblem> problems = super.createProblems(element, problemId, severity, message, attributes);
IResource resource = element.getElementResource();
// Check if error or warning on imported resource exists
if (!resource.equals(getRootElementResource())) {
IBeansImport beansImport = BeansModelUtils.getParentOfClass(element, IBeansImport.class);
while (beansImport != null) {
if (severity == IValidationProblemMarker.SEVERITY_ERROR) {
problems.add(createProblem(beansImport, "", IValidationProblemMarker.SEVERITY_ERROR,
"Validation error occured in imported configuration file '"