public static EISException createResourceException(Object[] args, int errorCode) {
   ResourceException resourceException =
       new ResourceException(
           ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args));
   EISException exception = new EISException(resourceException);
   exception.setErrorCode(RESOURCE_EXCEPTION);
   exception.setInternalException(resourceException);
   return exception;
 }
 public static EISException resourceException(
     Exception resourceException, EISAccessor accessor, AbstractSession session) {
   EISException exception = new EISException(resourceException);
   exception.setErrorCode(RESOURCE_EXCEPTION);
   exception.setInternalException(resourceException);
   exception.setAccessor(accessor);
   exception.setSession(session);
   return exception;
 }