return new ConfigureResponse(bundleMessage, form);
} catch (RepositoryException e) {
String bundleMessage;
try {
if (e.getCause() instanceof EngineRuntimeException) {
EngineRuntimeException ere = (EngineRuntimeException) e.getCause();
String errorKey = ere.getExceptionCode().getKey();
if (errorKey.equalsIgnoreCase("E_OBJECT_NOT_FOUND")) {
bundleMessage = resource.getString("object_store_invalid");
} else if (errorKey.equalsIgnoreCase("E_NOT_AUTHENTICATED")) {
bundleMessage = resource.getString("invalid_credentials_error");
} else if (errorKey.equalsIgnoreCase("E_UNEXPECTED_EXCEPTION")) {
String errorMsg = ere.getCause().getClass().getName();
if (ere.getCause() instanceof NoClassDefFoundError) {
NoClassDefFoundError ncdf = (NoClassDefFoundError) ere.getCause();
errorMsg = ncdf.getMessage();
if (errorMsg.indexOf("activation") != -1) {
bundleMessage = resource.getString("activation_jar_error");
} else {
bundleMessage = resource.getString("content_engine_url_invalid");
}
} else if (ere.getCause() instanceof ExceptionInInitializerError) {
bundleMessage = resource.getString("jaxrpc_jar_error");
} else {
bundleMessage = resource.getString("content_engine_url_invalid");
}
} else if (errorKey.equalsIgnoreCase("API_INVALID_URI")) {