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;
  }