return remoteObjectStore;
} catch (Exception e) {
log.error(e.getMessage(), e);
if (e.getMessage().indexOf("No instance available") != -1) {
throw new ServerConnectionException("The server is not available.\nPlease wait 30 seconds and try again.");
} else if (e.getMessage().indexOf("The requested application was not found on this server") != -1) {
throw new ServerConnectionException("The server is not available.\nPlease wait 30 seconds and try again.");
} else {
throw new ServerConnectionException("Unable to connect to server: " + e.getMessage(), e);
}
}
}