}
private static void mountAnnotatedResource(WebApplication application, Class<?> clazz)
throws InstantiationException, IllegalAccessException
{
ResourcePath mountAnnotation = clazz.getAnnotation(ResourcePath.class);
if (mountAnnotation == null || !IResource.class.isAssignableFrom(clazz))
{
return;
}
String path = mountAnnotation.value();
final IResource resourceInstance = (IResource) clazz.newInstance();
application.mountResource(path, new ResourceReference(clazz.getSimpleName())
{
/**