protected Object[] getErrorMessageParams(IEvent event) {
   CreateDefinitionEvent addEvent = (CreateDefinitionEvent) event;
   /** @todo TBD */
   return new Object[] {
     GFDefinition.ENTITY_NAME, addEvent.getName(),
   };
 }
  protected AbstractEntity prepareCreationData(IEvent event) {

    CreateDefinitionEvent addEvent = (CreateDefinitionEvent) event;

    GFTemplate template = new GFTemplate();
    template.setUId(addEvent.getTemplate().longValue());

    GFDefinition newDefinition = new GFDefinition();
    newDefinition.setDefinitionName(addEvent.getName());
    newDefinition.setFilename(addEvent.getFilename());
    newDefinition.setTemplate(template);

    return newDefinition;
  }