} else {
throw new IllegalStateException("A mount target, which is not subclass of Page nor Resource, is found. You can use @Path annotation only for subclasses of Page or Resource.");
}
}
} catch (ClassNotFoundException ex) {
throw new CanNotMountException("Page Class not found.", ex);
} catch (JAXBException ex) {
throw new CanNotMountException("Can not parse mountpoint.xml correctly.", ex);
}
}