public int isApproved(int approvalId) throws ApprovalException, EjbcaException, ApprovalRequestExpiredException{
EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
final IPatternLogger logger = TransactionLogger.getPatternLogger();
try {
final Admin admin = ejbhelper.getAdmin(true);
logAdminName(admin,logger);
return approvalSession.isApproved(admin, approvalId);
} catch (AuthorizationDeniedException e) {
throw EjbcaWSHelper.getEjbcaException(e, logger, ErrorCode.NOT_AUTHORIZED, Level.ERROR);
} catch (RuntimeException e) { // EJBException, ClassCastException, ...