return className.substring( 0, className.lastIndexOf('.') );
int index = className.lastIndexOf('.'); if( index == -1 ){ return ""; } return className.substring( 0, index );
    private static String getPackageName( String className  )    throws Throwable{                return className.substring( 0, className.lastIndexOf('.') );            }