This code should live in project.core and should be executed by the Op class.  That way we can write unit tests for the 'include sample code' option.