String errorCount = (String) context.get("Service.Target Database.ErrorOperationCount"); if(errorCount.equals("0")) return false; else return true;