code: private boolean isInstanceOf(Object rd, List<Class<?>> interfaces) {
  
  		boolean result = false;
  
  		for (Class<?> class1 : interfaces) {
  			if (class1.isInstance(rd)) {
  				result = true;
  				break;
  			}
  		}
  
  		return result;
  	}
docs: Checks if an object is an instance of on interface from a list of
  interface
  
  @param rd
  the object
  @param interfacesthe
  list of interfaces
  @return true if the object is an instance of on interface from a list of
  interface