class Store {

  public static String parseSubscriptionFrom(Subscription subscription) {
    if (subscription.getName().isEmpty() || subscription.getProject().isEmpty()) {
      throw new IllegalArgumentException(
          String.format("Missing arguments in subscription string: %s", subscription.toString()));
    }

    return String.format(
        "%s:%s:%s", subscription.getProject(), subscription.getName(), subscription.getExclude());
  }

}