appInstance = Application.class.cast(appClazz.newInstance());
} catch (Exception e) {
throw new OpenEJBRestRuntimeException("can't create class " + app, e);
}
ApplicationPath path = appClazz.getAnnotation(ApplicationPath.class);
if (path != null) {
String appPath = path.value();
if (appPath.startsWith("/")) {
appPrefix += appPath.substring(1);
} else {
appPrefix += appPath;
}