public static CmsJspResourceWrapper convertResource ( CmsObject cms , Object input ) throws CmsException { CmsJspResourceWrapper result ; if ( input instanceof CmsResource ) { result = CmsJspResourceWrapper . wrap ( cms , ( CmsResource ) input ) ; } else { result = CmsJspResourceWrapper . wrap ( cms , convertRawResource ( cms , input ) ) ; } return result ; }
Returns a resource wrapper created from the input .