InputStreamReader isr = new InputStreamReader(reg);
BufferedReader in = new BufferedReader(isr);
String className = in.readLine();
String methodName = in.readLine();
in.close();
task = (SmartCardTask) cl.invokeClassStaticMethod(className, methodName);
} catch (ClassNotFoundException ex) {
Logger.getLogger(CardReaderManagerView.class.getName()).log(Level.SEVERE, null, ex);
} catch (NoSuchMethodException ex) {
Logger.getLogger(CardReaderManagerView.class.getName()).log(Level.SEVERE, null, ex);
}