if( (javaClass==null) || javaClass.trim().equals("")) {
logger.error("Classe java nons specificata");
return;
}
// try to get new Instance
JavaClassDestination jcDest=null;
try{
jcDest=(JavaClassDestination)Class.forName(javaClass).newInstance();
}
catch (ClassCastException e) {
logger.error("Class "+javaClass+" does not extend JavaClassDestination class as expected");
return;
}
catch (Exception e) {
logger.error("Error while instantiating the class "+javaClass);
return;
}
logger.debug("Sucessfull instantiation of "+javaClass);
jcDest.setBiObj(biobj);
jcDest.setDocumentByte(response);
try{
jcDest.execute();
}
catch (Exception e) {
logger.error("Error during execution",e);
return;
}