private Set<OccurrenceLocation> findLocations(IndexedRegion region, int offset) {
if (region instanceof IDOMNode) {
IDOMNode node = (IDOMNode) region;
IFile file = editor.getResourceFile();
BeansValidationContext context = null;
IBeansConfig config = BeansCorePlugin.getModel().getConfig(file);
if (config != null) {
context = new BeansValidationContext(config,
new SpringProject(SpringCore.getModel(), file.getProject()));
}
String beanName = getBeanName(node, offset, context);
if (beanName != null) {