String oldMethodSourceCode = "";
String targetBean = Utils.getTargetBean(compilationUnit, method.getElementName());
AttributesSelectionDialog attributesSelectionDialog = new AttributesSelectionDialog(Utils.getCompilationUnit(compilationUnit, targetBean), true, false);
attributesSelectionDialog.pack();
attributesSelectionDialog.setLocationRelativeTo(null);
attributesSelectionDialog.setVisible(true);
String selectedAttributes = attributesSelectionDialog.getSelectedAttributes();
String selectedAttributesOrders = attributesSelectionDialog.getSelectedAttributesOrders();