} else if (location == VerticalDropLocation.TOP) {
Object parentId = container.getParent(targetItemId);
if (!checkIfParentChildRelationIsPossible(srcClass, parentId.getClass())) return false;
if (container.setParent(sourceItemId, parentId)) {
container.moveAfterSibling(sourceItemId, targetItemId);
container.moveAfterSibling(targetItemId, sourceItemId);
}
} else if (location == VerticalDropLocation.BOTTOM) {
Object parentId = container.getParent(targetItemId);
if (!checkIfParentChildRelationIsPossible(srcClass, parentId.getClass())) return false;
if (container.setParent(sourceItemId, parentId)) {