When using the Access Control Module framework this is automatically included. Try to explore the Demo Access Control Plug-in sample.
http://doc.developer.milestonesys.com/html/index.html?base=samples/acplugin.html&tree=tree_1.html
See also
Note also the pages under “Access Control Overview” (left hand side)