+ /**
+ * Returns a Sone or a {@link Shell} around one for the given ID.
+ *
+ * @param soneId
+ * The ID of the Sone
+ * @return The Sone, or a {@link Shell} around one
+ */
+ public Sone getSone(String soneId) {
+ Sone sone = soneCache.get(soneId);
+ if (sone instanceof SoneShell) {
+ soneCache.put(soneId, sone = ((SoneShell) sone).getShelled());
+ }
+ return sone;
+ }
+