code: public static List<Object> getArrayElementsProperty(AtlasType elementType, AtlasVertex instanceVertex, String propertyName) {
          String encodedPropertyName = GraphHelper.encodePropertyKey(propertyName);
          if(AtlasGraphUtilsV1.isReference(elementType)) {
              return (List)instanceVertex.getListProperty(encodedPropertyName, AtlasEdge.class);
          }
          else {
              return (List)instanceVertex.getListProperty(encodedPropertyName);
          }
      }
docs: newly added