if (stub == null) {
stub = getStub();
}
if (stub != null) {
try {
return stub.authenticateApplication(new ApplicationAuthenticationContext(
new PasswordCredential(appPass, Boolean.FALSE), appName, new ValidationFactor[0]));
} catch (RemoteException e) {
Debug.logError(e, module);
return null;
}