code: public static Object getApiObjectDwim(String cycLOrId) throws KbTypeException, CreateException {
      /*
      if (cycLOrId.startsWith("{") && cycLOrId.endsWith("}")) {
        cycLOrId = "(TheSet " + cycLOrId.substring(1, cycLOrId.length() - 1) + ")";
      }
      if (cycLOrId.startsWith("[") && cycLOrId.endsWith("]")) {
        cycLOrId = "(TheList " + cycLOrId.substring(1, cycLOrId.length() - 1) + ")";
      }
      return KB_SVC.getApiObject(cycLOrId);
       */
      return getLoader().getKbApiServices().getKbService().getApiObjectDwim(cycLOrId);
    }
docs: Returns a Object which is the best representation for a given String, so long as it doesn't
  need to be created in the KB. This static method wraps a call to
  {@link KbService#getApiObjectDwim(java.lang.String)}; see that method's documentation for more
  details.
  
  @param cycLOrId
  
  @return an Object (possibly a KbObject) which is the best representation for the given input
  
  @throws KbTypeException
  @throws CreateException
  
  @see KbService#getApiObjectDwim(java.lang.String)