+ // Find detached client
+ DetachedClient detachedClient = null;
+ if (client != null)
+ detachedClient = getBean(client);
+ else
+ detachedClient = SpringUtils.loadSingleFromContext(getContext(),
+ DetachedClient.class);
+
+ if (detachedClient == null)
+ throw new SlcException("Could not find any detached client.");
+
+ // Prepare and send request