public static String getPackageResourceName(Class<?> clazz) {
        String name;
        int idx;

        name = clazz.getName();
        idx = name.lastIndexOf('.');
        if (idx == -1) {
            throw new RuntimeException(name);
        }
        name = name.substring(0, idx);
        return "/" + name.replace('.', '/');
    }
public static String getPackageResourceName ( Class < ? > clazz ) { String name ; int idx ; name = clazz . getName ( ) ; idx = name . lastIndexOf ( '.' ) ; if ( idx == - 1 ) { throw new RuntimeException ( name ) ; } name = name . substring ( 0 , idx ) ; return "/" + name . replace ( '.' , '/' ) ; }
@return absolute resource name