Set<Node> sourceNodes = new HashSet<Node>();
Set<Node> targetNodes = new HashSet<Node>();
//open dialog
PoIQueryParamWithEntitiesDialog dialog = new PoIQueryParamWithEntitiesDialog(main);
options = dialog.open(options);
if ( !options.isCancel() )
{
options.setCancel(true);
}