code: public static void logError(String pMessage, Throwable pThrowable) {
          final BundleContext bundleContext = FrameworkUtil
              .getBundle(ServiceAuthenticationHttpContext.class)
              .getBundleContext();
          logError(bundleContext, pMessage, pThrowable);
      }
docs: Log error to a logging service (if available), otherwise log to std error
  
  @param pMessage message to log
  @param pThrowable an exception to log