code: @SuppressWarnings("unchecked") 
     private static boolean isDebugEnabled()
     {
        if (logging != null)
        {
           try
           {
              Class<?> clz = logging.getClass();
              Method mIsDebugEnabled = clz.getMethod("isDebugEnabled", (Class[])null);
              return ((Boolean)mIsDebugEnabled.invoke(logging, (Object[])null)).booleanValue();
           }
           catch (Throwable t)
           {
              // Nothing we can do
           }
        }
        return true;
     }
docs: Logging: Is DEBUG enabled
  @return True if debug is enabled; otherwise false