.getSelectedItem().toString().equals("by title") ? 0 : 1;
final String formData = Utils.readFile(Constants.DATA_PATH
+ "settings/vkauth.dat", Charset.defaultCharset());
final AudioApi api = new AudioApi(VkAuth.VK_APP_ID, formData.trim());
final String parameters = String
.format("q=%s&auto_complete=1&sort=2&lyrics=0&count=%s&performer_only=%s",
query, RESULT_LIMIT, PERFORMER_ONLY);
try {
final String json = api.searchAudioJson(parameters);
if (json.contains("\"response\":[0]")) {
JOptionPane.showMessageDialog(UISession.getSearchWidget()
.getWidget(), "No results found!", "Error",
JOptionPane.ERROR_MESSAGE);
isSearching = false;