code: public static boolean objectImplements(Object object, String interfaceClass) {
          AssertUtils.assertNotNull(object);
  
          boolean result = false;
  
          Class[] interfaces = object.getClass().getInterfaces();
          for (int i = 0; i < interfaces.length; i++) {
              if (interfaces[i].getName().equals(interfaceClass) == true) {
                  result = true;
                  break;
              }
          }
  
          return result;
      }
docs: Checks if Instance implements specified Interface
  {@link Class#isAssignableFrom(Class)} is not used as Interface might not be available
  and String representation can only be used
  
  @param object         Instance which would be checked
  @param interfaceClass Interface with which it would be checked
  @return true if Instance implements specified Interface