// limits errorMessage length
if (errorMessage != null && errorMessage.length() > 390) {
errorMessage = errorMessage.substring(0, 390);
}
AuditServiceProxy proxy = new AuditServiceProxy(userId,session);
String ris = proxy.log( auditId, startTime != null ? startTime
.toString() : "",
endTime != null ? endTime.toString() : "",
executionState != null ? executionState : "",
errorMessage != null ? errorMessage : "",
errorCode != null ? errorCode : "");