code: protected TicketDefinition buildTicketDefinition(final TicketCatalog plan, final String prefix, final Class impl, final int order) {
          if (plan.contains(prefix)) {
              return plan.find(prefix);
          }
          return new DefaultTicketDefinition(impl, prefix, order);
      }
docs: Build ticket ticket definition.
  
  @param plan   the plan
  @param prefix the prefix
  @param impl   the
  @param order  the order
  @return the ticket definition