factory = lookupFactory(ContentType.WILDCARD.getMimeType());
if (factory == null)
throw MechanizeExceptionFactory.newMechanizeException("No viable page type found, and no wildcard mime type factory registered.");
return factory.buildPage(this, request, response);
}
protected ContentType getContentType(final HttpResponse response) {
return ContentType.getOrDefault(response.getEntity());
}