/**
   * Creates an <code>EvaluationResult</code> object holding an error <code>Status</code>.<br>
   * This can be used to tunnel an exception through the XACML engine.<br>
   * If the provided exception is not an <code>EscidocException</code>, it is wrapped by a <code>
   * WebserverSystemException .</code>
   *
   * @param status The status code, one of the codes defined in the class <code>
   *     com.sun.xacml.ctx.Status</code>.
   * @param e The <code>Exception</code> that caused this error result.
   * @return Returns the created <code>EvaluationResult</code> object.
   */
  private static EvaluationResult createErrorResult(final String status, final Exception e) {

    return new EvaluationResult(CustomStatusBuilder.createErrorStatus(status, e));
  }
  /**
   * Creates an error result for a <code>ResourceNotFoundException</code>.
   *
   * @param e The <code>ResourceNotFoundException</code>.
   * @return Returns the created <code>EvaluationResult</code>.
   */
  public static EvaluationResult createResourceNotFoundResult(final ResourceNotFoundException e) {

    return createErrorResult(CustomStatusBuilder.getResourceNotFoundStatusCode(e), e);
  }