}
private Object getPlainText(DataFlavor f)
throws IOException, UnsupportedFlavorException {
if (!data.isNativeFormatAtailable(DataProvider.FORMAT_TEXT)) {
throw new UnsupportedFlavorException(f);
}
String str = data.getText();
if (str == null) {
throw new IOException("Data is not available");
}