SessionInfo.MANAGEMENT_CONSOLE_CONTEXT, Sample.SAMPLE_RESOURCE_TYPE,
new Permission[] { PolicyConstants.PERM_CREATE_EDIT_AND_ASSIGN }));
// This demonstrates listening for events. In this case we will look for
// 'sample created' events and display a message on the console
CoreServlet.getServlet().addCoreListener(new CoreListener() {
public void coreEvent(CoreEvent evt) {
if (evt.getId() == SamplePlugin.EVT_SAMPLE_CREATED) {
System.err.println("****************************************");
System.err.println("* Someone just created a sample!!! *");
System.err.println("****************************************");