IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(
new IResource[0],
new IJavaElement[]{src});
JavaMoveProcessor processor = new JavaMoveProcessor(policy);
IReorgDestination destination =
ReorgDestinationFactory.createDestination(pack);
RefactoringStatus status = processor.setDestination(destination);
if (status.hasError()){
throw new RefactorException(status);
}