IResource resource = getResourceFromDropTarget(dropTargetEvent);
// handle drag'n drop from resource
if (SpringCoreUtils.isSpringProject(resource) && resource instanceof IFile) {
IFile file = (IFile) resource;
IBeansModelElement parent = getBeansModelElementFromTarget(resource, target);
// handle resource drop to project or IWorkspaceRoot
if (parent instanceof BeansProject) {
BeansProject beansProject = (BeansProject) parent;
// check if target project is actually the parent of resource
IProject project = getProject(parent);