We shouldn't be reaching into the arguments directly so much, especially since it's not statically types. Can you change this check to !Job.isMavenJob()?