Factoring try catch : <p>I have a Java EE application with dozens of web services using the same pattern:</p>

<pre><code>public Response myWebService1() {
    try {
        // do something different depending on the web service called
    } catch (MyCustomException e1) {
        return Response.status(409).build();
    } catch (UnauthorizedException e2) {
        return Response.status(401).build();
    } catch (Exception e3) {
        return Response.status(500).build();
    }
}
</code></pre>

<p>Is that possible to factorize this piece of code?</p>
