code: public TimedPhase[] getCurrentAndNextTimedPhaseOnCreate(final DateTime alignStartDate,
                                                              final DateTime bundleStartDate,
                                                              final Plan plan,
                                                              @Nullable final PhaseType initialPhase,
                                                              final String priceList,
                                                              final DateTime effectiveDate,
                                                              final Catalog catalog,
                                                              final InternalTenantContext context) throws CatalogApiException, SubscriptionBaseApiException {
          final List<TimedPhase> timedPhases = getTimedPhaseOnCreate(alignStartDate,
                                                                     bundleStartDate,
                                                                     plan,
                                                                     initialPhase,
                                                                     catalog,
                                                                     effectiveDate,
                                                                     context);
          final TimedPhase[] result = new TimedPhase[2];
          result[0] = getTimedPhase(timedPhases, effectiveDate, WhichPhase.CURRENT);
          result[1] = getTimedPhase(timedPhases, effectiveDate, WhichPhase.NEXT);
          return result;
      }
docs: Returns the current and next phase for the subscription in creation
  
  @param alignStartDate  the subscription (align) startDate for the subscription
  @param bundleStartDate the bundle startDate used alignment
  @param plan            the current Plan
  @param initialPhase    the initialPhase on which we should create that subscription. can be null
  @param priceList       the priceList
  @param effectiveDate   the effective creation date (driven by the catalog policy, i.e. when the creation occurs)
  @return the current and next phases
  @throws CatalogApiException                                                     for catalog errors
  @throws org.killbill.billing.subscription.api.user.SubscriptionBaseApiException for subscription errors