@Override
    public DefaultPlan findCurrentPlan(final String name) throws CatalogApiException {
        if (name == null || plans == null) {
            throw new CatalogApiException(ErrorCode.CAT_NO_SUCH_PLAN, name);
        }
        final DefaultPlan result = (DefaultPlan) plans.findByName(name);
        if (result != null) {
            return result;
        }
        throw new CatalogApiException(ErrorCode.CAT_NO_SUCH_PLAN, name);
    }
@ Override public DefaultPlan findCurrentPlan ( final String name ) throws CatalogApiException { if ( name == null || plans == null ) { throw new CatalogApiException ( ErrorCode . CAT_NO_SUCH_PLAN , name ) ; } final DefaultPlan result = ( DefaultPlan ) plans . findByName ( name ) ; if ( result != null ) { return result ; } throw new CatalogApiException ( ErrorCode . CAT_NO_SUCH_PLAN , name ) ; }
////////////////////////////////////////////////////////////////////////////