src/main/java/org/intellimate/izou/sdk/frameworks/music/resources/VolumeResource.java
public static Optional<Volume> getVolume(EventModel eventModel) {
        if (eventModel.getListResourceContainer().containsResourcesFromSource(ID)) {
            return eventModel
                    .getListResourceContainer()
                    .provideResource(ID)
                    .stream()
                    .map(ResourceModel::getResource)
                    .filter(ob -> ob instanceof Integer)
                    .map(ob -> (Integer) ob)
                    .findAny()
                    .flatMap(Volume::createVolume);

        } else {
            return Optional.empty();
        }
    }
public static Optional<Volume> getVolume(EventModel eventModel) {
        if (eventModel.getListResourceContainer().containsResourcesFromSource(ID)) {
            return eventModel
                    .getListResourceContainer()
                    .provideResource(ID)
                    .stream()
                    .map(ResourceModel::getResource)
                    .filter(ob -> ob instanceof Integer)
                    .map(ob -> (Integer) ob)
                    .findAny()
                    .flatMap(Volume::createVolume);

        } else {
            return Optional.empty();
        }
    }
gets the first Volume if found in the EventModel
@param eventModel the EventModel
@return return the optional Volume