private DefaultSubscriptionBase getDefaultSubscriptionBase ( final Entity subscriptionBase , final Catalog catalog , final InternalTenantContext context ) throws CatalogApiException { if ( subscriptionBase instanceof DefaultSubscriptionBase ) { return ( DefaultSubscriptionBase ) subscriptionBase ; } else { // Safe cast, see above return ( DefaultSubscriptionBase ) dao . getSubscriptionFromId ( subscriptionBase . getId ( ) , catalog , context ) ; } }
For forward - compatibility