class TextUtils {

    public static String getPrettyClassName( Class<?> clazz )
    {
        StringBuilder name = new StringBuilder();

        String className = clazz.getSimpleName();

        for ( int i = 0; i < className.length(); i++ )
        {
            char c = className.charAt( i );

            if ( i > 0 && Character.isUpperCase( c ) )
            {
                name.append( StringUtils.SPACE );
            }

            name.append( c );
        }

        return name.toString();
    }

}