code: private String getStackName() {
          String res = null;
          if (object() != null && object().stackName() != null) {
              res = object().stackName();
          } else if (getFirstKeyPart() instanceof String) {
              res = (String) getFirstKeyPart();
          }
          return res;
      }
docs: Returns the current stack name associated to this model.
  
  Checks the modelObject and return it only if it is a String
  
  @return the stack name