[relax 1.7] accessing coldbox in Relax.cfc

how can i access coldbox from the resources/myapi/Relax.cfc?

i want to write a coldbox plugin that will introspect entities then write schemas/examples.

right now, its a stand alone class that has no access to the cb goodies.

application.wirebox.getColdbox(); gives me access to Coldbox and application.wirebox.getColdbox().getPlugin(“beanFactory”) gives me access to the Host Application’s model.