@VisibleForTesting Object renderStorageLinkItem( final Context context, final Request req, final Response res, final Variant variant, final ResourceStore store, final StorageLinkItem item ) throws ResourceException { // we have a link, dereference it // TODO: we should be able to do HTTP redirects too! (parametrize the dereferencing?) try { return renderItem( context, req, res, variant, store, getNexus().dereferenceLinkItem( item ) ); } catch ( Exception e ) { handleException( req, res, e ); return null; } }