/**
* Performs the check
*/
private void checkAvailability() {
Message message;
String taskName = taskName("CheckActivationTask");
// OK if envCheck.getGroupDescriptor() returns null
Object launchReturn = envCheck.launch(null,
envCheck.getGroupDescriptor(),
taskName);
if (launchReturn == null) {
message = new Message(Reporter.INFO,
getString("running"),
getString("explanationString"));
} else {
Throwable ex = (Throwable) launchReturn;
Throwable t = ex.getCause();
if (t == null) {
t = ex;
}
if (t instanceof java.rmi.ConnectException) {
message = new Message(Reporter.WARNING,
getString("notRunning"),
t,
getString("explanationString"));
} else if (t instanceof AccessControlException) {
message = new Message(Reporter.WARNING,
getString("nopermission"),
t,
getString("noPermExplanationString"));
} else {
message = new Message(Reporter.WARNING,
getString("unexpectedException"),
ex,
getString("unexpectedExplanationString"));
}
}