code: public T getByInterfaces(Class<?> clazz) {
          T object = null;
          Class<?>[] interfaces = clazz.getInterfaces();
          for (Class<?> interfaceClass : interfaces) {
              object = map.get(interfaceClass);
              if(object != null) {
                  break;
              }
          }
          return object;
      }
docs: Returns the vale associated with the any
  interface implemented by the supplied class.
  
  This method will return the first match only, if
  more than one value can be resolved the first is
  returned.
  
  @param clazz  Class to inspect interfaces of.
  
  @return The resolved value if found, else null.