protected IZclFrame parseZoneEnrollRequest(IASZoneClient o, IZclFrame zclFrame)
     throws ApplianceException, ServiceClusterException {
   int ZoneType = ZclDataTypeEnum16.zclParse(zclFrame);
   int ManufacturerCode = ZclDataTypeUI16.zclParse(zclFrame);
   ZoneEnrollResponse r =
       o.execZoneEnrollRequest(ZoneType, ManufacturerCode, endPoint.getDefaultRequestContext());
   int size = ZclZoneEnrollResponse.zclSize(r);
   IZclFrame zclResponseFrame = zclFrame.createResponseFrame(size);
   zclResponseFrame.setCommandId(0);
   ZclZoneEnrollResponse.zclSerialize(zclResponseFrame, r);
   return zclResponseFrame;
 }
 public int getZoneType(IEndPointRequestContext context)
     throws ApplianceException, ServiceClusterException {
   if (context != null) {
     Integer objectResult = null;
     objectResult =
         ((Integer) getValidCachedAttributeObject(1, context.getMaxAgeForAttributeValues()));
     if (objectResult != null) {
       return objectResult.intValue();
     }
   }
   IZclFrame zclFrame = readAttribute(1, context);
   int v = ZclDataTypeEnum16.zclParse(zclFrame);
   setCachedAttributeObject(1, new Integer(v));
   return v;
 }