if (ioException.getMessage().indexOf("Missing Session Error") != -1) {
return new MissingSessionException(ioException);
} else if (ioException.getMessage().indexOf("No instance available") != -1) {
return new NoInstanceAvailableException(ioException);
} else if (ioException.getMessage().indexOf("The requested application was not found on this server") != -1) {
return new RequestedApplicationNotFoundException(ioException);
} else {
return ioException;
}
}