src/main/java/org/intellimate/izou/sdk/frameworks/music/resources/MusicUsageResource.java
public static boolean isPermanent(EventModel eventModel) {
        if (eventModel.getListResourceContainer().containsResourcesFromSource(ID)) {
            return eventModel
                    .getListResourceContainer()
                    .provideResource(ID)
                    .stream()
                    .map(ResourceModel::getResource)
                    .filter(ob -> ob instanceof Boolean)
                    .map(ob -> (Boolean) ob)
                    .findAny()
                    .orElse(false);

        } else {
            return false;
        }
    }
public static boolean isPermanent(EventModel eventModel) {
        if (eventModel.getListResourceContainer().containsResourcesFromSource(ID)) {
            return eventModel
                    .getListResourceContainer()
                    .provideResource(ID)
                    .stream()
                    .map(ResourceModel::getResource)
                    .filter(ob -> ob instanceof Boolean)
                    .map(ob -> (Boolean) ob)
                    .findAny()
                    .orElse(false);

        } else {
            return false;
        }
    }
public static boolean isPermanent ( EventModel eventModel ) { if ( eventModel . getListResourceContainer ( ) . containsResourcesFromSource ( ID ) ) { return eventModel . getListResourceContainer ( ) . provideResource ( ID ) . stream ( ) . map ( ResourceModel :: getResource ) . filter ( ob -> ob instanceof Boolean ) . map ( ob -> ( Boolean ) ob ) . findAny ( ) . orElse ( false ) ; } else { return false ; } }
gets whether the request is permanent (=permanent resource is available and true)
@param eventModel the EventModel
@return true if permanent
gets whether the request is permanent ( = permanent resource is available and true )