code: public static Constructor<?> findDefaultConstructorOrThrowException(Class<?> type) throws
              ConstructorNotFoundException {
          if (type == null) {
              throw new IllegalArgumentException("type cannot be null");
          }
  
          final Constructor<?> declaredConstructor;
          try {
              declaredConstructor = type.getDeclaredConstructor();
          } catch (NoSuchMethodException e) {
              throw new ConstructorNotFoundException(String.format("Couldn't find a default constructor in %s.", type.getName()));
          }
          return declaredConstructor;
      }
docs: Finds and returns the default constructor. If the constructor couldn't be
  found this method delegates to {@link #throwExceptionWhenMultipleConstructorMatchesFound(java.lang.reflect.Constructor[])}.
  
  @param type The type where the constructor should be located.
  @return The found constructor.
  @throws ConstructorNotFoundException if too many constructors was found.