src/main/java/org/intellimate/izou/sdk/frameworks/music/resources/MusicUsageResource.java
public static boolean isPermanent(ResourceModel resourceModel) {
        Object resource = resourceModel.getResource();
        try {
            return (Boolean) resource;
        } catch (ClassCastException e) {
            return false;
        }
    }
public static boolean isPermanent(ResourceModel resourceModel) {
        Object resource = resourceModel.getResource();
        try {
            return (Boolean) resource;
        } catch (ClassCastException e) {
            return false;
        }
    }
returns true if the resource is true, otherwise returns false
@param resourceModel the resourceModel
@return true if permanent