src/main/java/org/intellimate/izou/sdk/frameworks/music/player/template/InformationProvider.java
@Override
    public Optional<? extends ResourceModel> generateResource(ResourceModel resourceModel, Optional<EventModel> event) {
        switch (resourceModel.getResourceID()) {
            case BroadcasterAvailablePlaylists.RESOURCE_ID: return createBroadcasterAvailablePlaylists();
            case BroadcasterPlaylist.RESOURCE_ID : return createBroadcasterPlaylist(resourceModel);
            default: return MusicResourceGenerator.super.generateResource(resourceModel, event);
        }
    }
@Override
    public Optional<? extends ResourceModel> generateResource(ResourceModel resourceModel, Optional<EventModel> event) {
        switch (resourceModel.getResourceID()) {
            case BroadcasterAvailablePlaylists.RESOURCE_ID: return createBroadcasterAvailablePlaylists();
            case BroadcasterPlaylist.RESOURCE_ID : return createBroadcasterPlaylist(resourceModel);
            default: return MusicResourceGenerator.super.generateResource(resourceModel, event);
        }
    }
@ Override public Optional < ? extends ResourceModel > generateResource ( ResourceModel resourceModel , Optional < EventModel > event ) { switch ( resourceModel . getResourceID ( ) ) { case BroadcasterAvailablePlaylists . RESOURCE_ID : return createBroadcasterAvailablePlaylists ( ) ; case BroadcasterPlaylist . RESOURCE_ID : return createBroadcasterPlaylist ( resourceModel ) ; default : return MusicResourceGenerator . super . generateResource ( resourceModel , event ) ; } }
generates the resources

@param resourceModel the resourceModel
@param event         the Event
@return a Stream containing the resourceModel(s)
generates the resources