l4j.debug( "URL: " + u );
return u;
} catch (UnsupportedEncodingException e) {
throw new EsuException( "Unsupported encoding", e );
} catch (InvalidKeyException e) {
throw new EsuException( "Invalid secret key", e );
} catch (NoSuchAlgorithmException e) {
throw new EsuException( "Missing signature algorithm", e );
} catch (IllegalStateException e) {
throw new EsuException( "Error signing request", e );
} catch (MalformedURLException e) {
throw new EsuException( "Invalid URL format", e );
} catch (URISyntaxException e) {
throw new EsuException( "Invalid URL", e );
}
}