Added the ability to set template cookbook and source for the java agent