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