Content (boolean reusable) { Key<Boolean> contentKey = reusable ? REUSABLE_CONTENT_KEY : NOT_REUSABLE_CONTENT_KEY; Content selectedContent = myFindContentManager.getSelectedContent(); return selectedContent == null || selectedContent.getUserData(contentKey) == null ? null : selectedContent; }