added attribute to determine whether to use alternatives to set default ...

...java.  added conditional in receipes to check whether or not to run alternatives