code: public static String getCubeIDForContainer(Container container) {
          final String cubeID;
          final Map<String, String> containerProperties = container.getContainerConfiguration().getContainerProperties();
          if (containerProperties == null) {
              // test cases may not mock entire hierarchy
              cubeID = null;
          } else {
              cubeID = containerProperties.get("cubeId");
          }
          return cubeID == null ? container.getName() : cubeID;
      }
docs: Returns the cube ID for the container. By default, this is the container
  name, but can be overridden by the user in the container properties, e.g.
  <code>&lt;cubeId&gt;pod-name&lt;/cubeId&gt;</code>.
  
  @param container
  the arquillian container
  
  @return the cube ID for the specified container