} catch (Exception ex1) {
Logger.error(username,this.getClass().getName(),"executeCommand","Error while fetching bill of materials and fill in TMP01 table",ex1);
try {
if (this.conn==null && conn!=null)
// rollback only local connection
conn.rollback();
}
catch (Exception ex3) {
}
throw new Exception(ex1.getMessage());
} finally {