public static Map<String,Object> badExpireEvenProcessor(DispatchContext dctx,Map<String,? extends Object> context){
  GenericValue creditCard=(GenericValue)context.get("creditCard");
  String expireDate=creditCard.getString("expireDate");
  String lastNumberStr=expireDate.substring(expireDate.length() - 1);
  int lastNumber=Integer.parseInt(lastNumberStr);
  if (lastNumber % 2.0 == 0.0) {
    return alwaysBadExpireProcessor(dctx,context);
  }
 else {
    return alwaysApproveProcessor(dctx,context);
  }
}

public static Map < String , Object > badExpireEvenProcessor ( DispatchContext dctx , Map < String , ? extends Object > context ) { GenericValue creditCard = ( GenericValue ) context . get ( "creditCard" ) ; String expireDate = creditCard . getString ( "expireDate" ) ; String lastNumberStr = expireDate . substring ( expireDate . length ( ) - 1 ) ; int lastNumber = Integer . parseInt ( lastNumberStr ) ; if ( lastNumber % 2.0 == 0.0 ) { return alwaysBadExpireProcessor ( dctx , context ) ; } else { return alwaysApproveProcessor ( dctx , context ) ; } }
fail / bad expire date when year is even processor
