How to change grass file from java code

I am writing a Neo4j Genealogy Plugin to encourage adoption of Neo4j within the genealogy community. I've been using *.grass. files to enhance visualizations. I want to incorporate these into the plugin so that the grass file can be changed on the fly when a user involves a function. Optimizing the visualization varies for each output.

Is there a Neo4j java function that will let you change the grass file?