public AppModule deploy(final AppModule appModule) throws OpenEJBException {
final AppValidator validator;
if (!SystemInstance.get().getOptions().get(OPENEJB_CHECK_CLASSLOADER, false)) {
validator = new AppValidator();
} else {
validator = new AppValidator(new CheckClassLoading());
}
return validator.validate(appModule);
}