Description
String type = page != null ? page.getClass().getName() : null;
throw new IllegalArgumentException("Unknown object type + type");
should be:
String type = page != null ? page.getClass().getName() : null;
throw new IllegalArgumentException("Unknown object type" + type);