code: public List<Struct> listTraitDefinitions(final String guid) throws AtlasServiceException{
          JSONObject jsonResponse = callAPIWithBodyAndParams(API.GET_ALL_TRAIT_DEFINITIONS, null, guid, TRAIT_DEFINITIONS);
          List<JSONObject> traitDefList = extractResults(jsonResponse, AtlasClient.RESULTS, new ExtractOperation<JSONObject, JSONObject>());
          ArrayList<Struct> traitStructList = new ArrayList<>();
          for(JSONObject traitDef:traitDefList){
              Struct traitStruct = InstanceSerialization.fromJsonStruct(traitDef.toString(), true);
              traitStructList.add(traitStruct);
          }
          return traitStructList;
      }
docs: Get all trait definitions for an entity
  @param guid GUID of the entity
  @return List<String> trait definitions of the traits associated to the entity
  @throws AtlasServiceException