/**
  * this method creates the platform object
  *
  * @param nodeElement OMElement input from the xml reader
  */
 public void createPlatformContext(OMElement nodeElement) {
   Iterator instanceGroupIterator = nodeElement.getChildElements();
   OMElement instanceGroupNode;
   // Walk through the instance group list
   while (instanceGroupIterator.hasNext()) {
     ProductGroup productGroup = new ProductGroup();
     instanceGroupNode = (OMElement) instanceGroupIterator.next();
     // set the attributes of the current instance group
     String groupName =
         instanceGroupNode.getAttributeValue(
             QName.valueOf(ContextConstants.PLATFORM_CONTEXT_INSTANCE_GROUP_NAME));
     Boolean clusteringEnabled =
         Boolean.parseBoolean(
             instanceGroupNode.getAttributeValue(
                 QName.valueOf(
                     ContextConstants.PLATFORM_CONTEXT_INSTANCE_GROUP_CLUSTERING_ENABLED)));
     productGroup.setGroupName(groupName);
     productGroup.setClusteringEnabled(clusteringEnabled);
     // walk through the instances in the instance group
     Iterator instances = instanceGroupNode.getChildElements();
     OMElement instanceNode;
     while (instances.hasNext()) {
       // adding the instance to the instance group
       instanceNode = (OMElement) instances.next();
       createInstance(instanceNode, productGroup);
       // addInstanceToTypeList(currentInstance, productGroup);
     }
     platformContext.addProductGroup(productGroup);
   }
 }