//Initialize the file chooser with the current user
User user = PlatformAccess.getPlatform().getCurrentUser();
final CustomFileChooser fileChooser = new CustomFileChooser();
//add the list of owners and set selection to current owner
fileChooser.addOwners(Arrays.asList(RoleAccess.getAllUsers()));
fileChooser.setOwner(user.getUserId());
fileChooser.setDialogTitle(bundle.getString("import_message")
+ targetComponent.getDisplayName());
fileChooser.setApproveButtonText(bundle.getString("import_button"));