"""
#######################################################################

CCPN Data Model version 2.1.2

Autogenerated by PyXmlMapWrite revision 1.29 on Mon Mar  2 17:24:09 2015
  from data model element ccp.lims.Classification revision ?

#######################################################################
======================COPYRIGHT/LICENSE START==========================

Classification.py: python XML-I/O-mapping for CCPN data model, MetaPackage ccp.lims.Classification

Copyright (C) 2007  (CCPN Project)

=======================================================================

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
 
A copy of this license can be found in ../../../../license/LGPL.license
 
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
 
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


======================COPYRIGHT/LICENSE END============================

for further information, please contact :

- CCPN website (http://www.ccpn.ac.uk/)

- email: ccpn@bioc.cam.ac.uk

=======================================================================

If you are using this software for academic purposes, we suggest
quoting the following references:

===========================REFERENCE START=============================
Rasmus H. Fogh, Wayne Boucher, Wim F. Vranken, Anne
Pajon, Tim J. Stevens, T.N. Bhat, John Westbrook, John M.C. Ionides and
Ernest D. Laue (2005). A framework for scientific data modeling and automated
software development. Bioinformatics 21, 1678-1684.


This file was generated with the Memops software generation framework,
and contains original contributions embedded in the framework

===========================REFERENCE END===============================
"""
from memops.general.Constants import baseDataTypeModule as basicDataTypes
# 
#  Current package api
import ccp.api.lims.Classification

def makeMapping(globalMap):
  """
  generates XML I/O mapping for package CLAS, adding it to globalMap
  """
  
  from memops.xml.Implementation import bool2str, str2bool

  # Set up top level dictionaries
  loadMaps = globalMap.get('loadMaps')
  mapsByGuid = globalMap.get('mapsByGuid')

  abstractTypes = globalMap.get('CLAS').get('abstractTypes')
  exolinks = globalMap.get('CLAS').get('exolinks')

  # Class AbstractCategory
  currentMap = {}
  abstractTypes['AbstractCategory'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:19:17_00001'] = currentMap
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:19:17_00001'
  currentMap['eType'] = 'cplx'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.AbstractCategory
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute AbstractCategory.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute AbstractCategory.details
  currentMap = {}
  contentMap['details'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001'] = currentMap
  loadMaps['CLAS.AbstractCategory.details'] = currentMap
  currentMap['tag'] = 'CLAS.AbstractCategory.details'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001'
  currentMap['name'] = 'details'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00036')

  # Attribute AbstractCategory.name
  currentMap = {}
  contentMap['name'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014'] = currentMap
  loadMaps['CLAS.AbstractCategory.name'] = currentMap
  currentMap['tag'] = 'CLAS.AbstractCategory.name'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014'
  currentMap['name'] = 'name'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033')

  # Role AbstractCategory.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')
  # End of AbstractCategory

  currentMap = abstractTypes.get('AbstractCategory')
  aList = ['details', 'name']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class Classification
  currentMap = {}
  abstractTypes['Classification'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:18:54_00002'] = currentMap
  loadMaps['CLAS.Classification'] = currentMap
  currentMap['tag'] = 'CLAS.Classification'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:18:54_00002'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'classifications'
  currentMap['isTop'] = True
  currentMap['objkey'] = 'namingSystem'
  currentMap['class'] = ccp.api.lims.Classification.Classification
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute Classification.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute Classification.createdBy
  contentMap['createdBy'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:00:59_00002__www.ccpn.ac.uk_Fogh_2007-10-03-14:53:27_00001__www.ccpn.ac.uk_Fogh_2006-09-14-16:28:57_00002')

  # Attribute Classification.guid
  contentMap['guid'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:26_00002')

  # Attribute Classification.isModifiable
  contentMap['isModifiable'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-17-14:16:26_00010__www.ccpn.ac.uk_Fogh_2007-10-03-14:53:27_00001__www.ccpn.ac.uk_Fogh_2006-09-14-16:28:57_00002')

  # Attribute Classification.lastUnlockedBy
  contentMap['lastUnlockedBy'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:00:59_00003__www.ccpn.ac.uk_Fogh_2007-10-03-14:53:27_00001__www.ccpn.ac.uk_Fogh_2006-09-14-16:28:57_00002')

  # Attribute Classification.namingSystem
  currentMap = {}
  contentMap['namingSystem'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00013'] = currentMap
  loadMaps['CLAS.Classification.namingSystem'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.namingSystem'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00013'
  currentMap['name'] = 'namingSystem'
  currentMap['hicard'] = 1
  currentMap['locard'] = 1
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033')

  # Role Classification.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role Classification.experimentTypes
  currentMap = {}
  contentMap['experimentTypes'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00002'] = currentMap
  loadMaps['CLAS.Classification.experimentTypes'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.experimentTypes'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00002'
  currentMap['name'] = 'experimentTypes'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.hazardPhrases
  currentMap = {}
  contentMap['hazardPhrases'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00006'] = currentMap
  loadMaps['CLAS.Classification.hazardPhrases'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.hazardPhrases'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00006'
  currentMap['name'] = 'hazardPhrases'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.holderCategorys
  currentMap = {}
  contentMap['holderCategorys'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:33:23_00002'] = currentMap
  loadMaps['CLAS.Classification.holderCategorys'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.holderCategorys'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:33:23_00002'
  currentMap['name'] = 'holderCategorys'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.instrumentTypes
  currentMap = {}
  contentMap['instrumentTypes'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:33_00001'] = currentMap
  loadMaps['CLAS.Classification.instrumentTypes'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.instrumentTypes'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:33_00001'
  currentMap['name'] = 'instrumentTypes'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.sampleCategories
  currentMap = {}
  contentMap['sampleCategories'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00008'] = currentMap
  loadMaps['CLAS.Classification.sampleCategories'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.sampleCategories'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00008'
  currentMap['name'] = 'sampleCategories'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.sampleComponentCategory
  currentMap = {}
  contentMap['sampleComponentCategory'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00004'] = currentMap
  loadMaps['CLAS.Classification.sampleComponentCategory'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.sampleComponentCategory'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00004'
  currentMap['name'] = 'sampleComponentCategory'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.targetScoreboards
  currentMap = {}
  contentMap['targetScoreboards'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00012'] = currentMap
  loadMaps['CLAS.Classification.targetScoreboards'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.targetScoreboards'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00012'
  currentMap['name'] = 'targetScoreboards'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')

  # Role Classification.targetStatus
  currentMap = {}
  contentMap['targetStatus'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00010'] = currentMap
  loadMaps['CLAS.Classification.targetStatus'] = currentMap
  currentMap['tag'] = 'CLAS.Classification.targetStatus'
  currentMap['type'] = 'child'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00010'
  currentMap['name'] = 'targetStatus'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['implSkip'] = True
  currentMap['content'] = globalMap.get('CLAS').get('abstractTypes')
  # End of Classification

  currentMap = abstractTypes.get('Classification')
  aList = ['createdBy', 'guid', 'isModifiable', 'lastUnlockedBy']
  currentMap['headerAttrs'] = aList
  aList = ['namingSystem']
  currentMap['simpleAttrs'] = aList
  aList = ['targetStatus', 'targetScoreboards', 'sampleComponentCategory', 'sampleCategories', 'instrumentTypes', 'holderCategorys', 'hazardPhrases', 'experimentTypes', 'access', 'applicationData']
  currentMap['cplxAttrs'] = aList
  aList = ['experimentTypes', 'hazardPhrases', 'holderCategorys', 'instrumentTypes', 'sampleCategories', 'sampleComponentCategory', 'targetScoreboards', 'targetStatus']
  currentMap['children'] = aList

  # Class SampleComponentCategory
  currentMap = {}
  abstractTypes['SampleComponentCategory'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00014'] = currentMap
  loadMaps['CLAS.SampleComponentCategory'] = currentMap
  currentMap['tag'] = 'CLAS.SampleComponentCategory'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00014'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'sampleComponentCategory'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.SampleComponentCategory
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute SampleComponentCategory.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute SampleComponentCategory.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute SampleComponentCategory.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role SampleComponentCategory.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')
  # End of SampleComponentCategory

  currentMap = abstractTypes.get('SampleComponentCategory')
  aList = ['details', 'name']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class ExperimentType
  currentMap = {}
  abstractTypes['ExperimentType'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:45_00014'] = currentMap
  loadMaps['CLAS.ExperimentType'] = currentMap
  currentMap['tag'] = 'CLAS.ExperimentType'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:45_00014'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'experimentTypes'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.ExperimentType
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute ExperimentType.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute ExperimentType.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute ExperimentType.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role ExperimentType.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role ExperimentType.instrumentTypes
  currentMap = {}
  contentMap['instrumentTypes'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:57_00002'] = currentMap
  loadMaps['CLAS.ExperimentType.instrumentTypes'] = currentMap
  currentMap['tag'] = 'CLAS.ExperimentType.instrumentTypes'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:57_00002'
  currentMap['name'] = 'instrumentTypes'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True

  # Role ExperimentType.sampleCategories
  currentMap = {}
  contentMap['sampleCategories'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:56_00031'] = currentMap
  loadMaps['CLAS.ExperimentType.sampleCategories'] = currentMap
  currentMap['tag'] = 'CLAS.ExperimentType.sampleCategories'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:56_00031'
  currentMap['name'] = 'sampleCategories'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True
  # End of ExperimentType

  currentMap = abstractTypes.get('ExperimentType')
  aList = ['details', 'name', 'instrumentTypes', 'sampleCategories']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class TargetScoreboard
  currentMap = {}
  abstractTypes['TargetScoreboard'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:51_00040'] = currentMap
  loadMaps['CLAS.TargetScoreboard'] = currentMap
  currentMap['tag'] = 'CLAS.TargetScoreboard'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:51_00040'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'targetScoreboards'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.TargetScoreboard
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute TargetScoreboard.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute TargetScoreboard.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute TargetScoreboard.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role TargetScoreboard.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role TargetScoreboard.targetStatus
  currentMap = {}
  contentMap['targetStatus'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:23:18_00039'] = currentMap
  loadMaps['CLAS.TargetScoreboard.targetStatus'] = currentMap
  currentMap['tag'] = 'CLAS.TargetScoreboard.targetStatus'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:23:18_00039'
  currentMap['name'] = 'targetStatus'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True
  # End of TargetScoreboard

  currentMap = abstractTypes.get('TargetScoreboard')
  aList = ['details', 'name', 'targetStatus']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class HolderCategory
  currentMap = {}
  abstractTypes['HolderCategory'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:52_00049'] = currentMap
  loadMaps['CLAS.HolderCategory'] = currentMap
  currentMap['tag'] = 'CLAS.HolderCategory'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:52_00049'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'holderCategorys'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.HolderCategory
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute HolderCategory.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute HolderCategory.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute HolderCategory.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role HolderCategory.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')
  # End of HolderCategory

  currentMap = abstractTypes.get('HolderCategory')
  aList = ['details', 'name']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class HazardPhrase
  currentMap = {}
  abstractTypes['HazardPhrase'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:52_00052'] = currentMap
  loadMaps['CLAS.HazardPhrase'] = currentMap
  currentMap['tag'] = 'CLAS.HazardPhrase'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:52_00052'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'hazardPhrases'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.HazardPhrase
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute HazardPhrase.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute HazardPhrase.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute HazardPhrase.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Attribute HazardPhrase.phrase
  currentMap = {}
  contentMap['phrase'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00017'] = currentMap
  loadMaps['CLAS.HazardPhrase.phrase'] = currentMap
  currentMap['tag'] = 'CLAS.HazardPhrase.phrase'
  currentMap['type'] = 'attr'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:23:28_00017'
  currentMap['name'] = 'phrase'
  currentMap['hicard'] = 1
  currentMap['locard'] = 0
  currentMap['eType'] = 'cplx'
  currentMap['data'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00036')

  # Role HazardPhrase.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')
  # End of HazardPhrase

  currentMap = abstractTypes.get('HazardPhrase')
  aList = ['details', 'name', 'phrase']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class InstrumentType
  currentMap = {}
  abstractTypes['InstrumentType'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:46_00005'] = currentMap
  loadMaps['CLAS.InstrumentType'] = currentMap
  currentMap['tag'] = 'CLAS.InstrumentType'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:46_00005'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'instrumentTypes'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.InstrumentType
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute InstrumentType.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute InstrumentType.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute InstrumentType.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role InstrumentType.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role InstrumentType.experimentTypes
  currentMap = {}
  contentMap['experimentTypes'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:57_00001'] = currentMap
  loadMaps['CLAS.InstrumentType.experimentTypes'] = currentMap
  currentMap['tag'] = 'CLAS.InstrumentType.experimentTypes'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:57_00001'
  currentMap['name'] = 'experimentTypes'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True
  # End of InstrumentType

  currentMap = abstractTypes.get('InstrumentType')
  aList = ['details', 'name', 'experimentTypes']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class SampleCategory
  currentMap = {}
  abstractTypes['SampleCategory'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00009'] = currentMap
  loadMaps['CLAS.SampleCategory'] = currentMap
  currentMap['tag'] = 'CLAS.SampleCategory'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00009'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'sampleCategories'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.SampleCategory
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute SampleCategory.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute SampleCategory.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute SampleCategory.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role SampleCategory.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role SampleCategory.experimentTypes
  currentMap = {}
  contentMap['experimentTypes'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:22:56_00030'] = currentMap
  loadMaps['CLAS.SampleCategory.experimentTypes'] = currentMap
  currentMap['tag'] = 'CLAS.SampleCategory.experimentTypes'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:22:56_00030'
  currentMap['name'] = 'experimentTypes'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True
  # End of SampleCategory

  currentMap = abstractTypes.get('SampleCategory')
  aList = ['details', 'name', 'experimentTypes']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Class TargetStatus
  currentMap = {}
  abstractTypes['TargetStatus'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-14:22:51_00039'] = currentMap
  loadMaps['CLAS.TargetStatus'] = currentMap
  currentMap['tag'] = 'CLAS.TargetStatus'
  currentMap['type'] = 'class'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:51_00039'
  currentMap['eType'] = 'cplx'
  currentMap['fromParent'] = 'targetStatus'
  currentMap['objkey'] = 'name'
  currentMap['class'] = ccp.api.lims.Classification.TargetStatus
  contentMap = {}
  currentMap['content'] = contentMap

  # Attribute TargetStatus.applicationData
  contentMap['applicationData'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-14-18:48:27_00007')

  # Attribute TargetStatus.details
  contentMap['details'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:35_00001')

  # Attribute TargetStatus.name
  contentMap['name'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-09-04-17:21:34_00014')

  # Role TargetStatus.access
  contentMap['access'] = mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-12-31-09:03:01_00014')

  # Role TargetStatus.targetScoreboards
  currentMap = {}
  contentMap['targetScoreboards'] = currentMap
  mapsByGuid['www.ccpn.ac.uk_Fogh_2006-08-16-18:23:18_00040'] = currentMap
  loadMaps['CLAS.TargetStatus.targetScoreboards'] = currentMap
  currentMap['tag'] = 'CLAS.TargetStatus.targetScoreboards'
  currentMap['type'] = 'link'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-18:23:18_00040'
  currentMap['name'] = 'targetScoreboards'
  currentMap['hicard'] = -1
  currentMap['locard'] = 0
  currentMap['copyOverride'] = True
  # End of TargetStatus

  currentMap = abstractTypes.get('TargetStatus')
  aList = ['details', 'name', 'targetScoreboards']
  currentMap['simpleAttrs'] = aList
  aList = ['access', 'applicationData']
  currentMap['cplxAttrs'] = aList

  # Out-of-package link to Classification
  currentMap = {}
  exolinks['Classification'] = currentMap
  loadMaps['CLAS.exo-Classification'] = currentMap
  currentMap['tag'] = 'CLAS.exo-Classification'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-09-04-17:18:54_00002'
  currentMap['name'] = 'Classification'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.Classification
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))

  # Out-of-package link to SampleComponentCategory
  currentMap = {}
  exolinks['SampleComponentCategory'] = currentMap
  loadMaps['CLAS.exo-SampleComponentCategory'] = currentMap
  currentMap['tag'] = 'CLAS.exo-SampleComponentCategory'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00014'
  currentMap['name'] = 'SampleComponentCategory'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.SampleComponentCategory
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to ExperimentType
  currentMap = {}
  exolinks['ExperimentType'] = currentMap
  loadMaps['CLAS.exo-ExperimentType'] = currentMap
  currentMap['tag'] = 'CLAS.exo-ExperimentType'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:45_00014'
  currentMap['name'] = 'ExperimentType'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.ExperimentType
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to TargetScoreboard
  currentMap = {}
  exolinks['TargetScoreboard'] = currentMap
  loadMaps['CLAS.exo-TargetScoreboard'] = currentMap
  currentMap['tag'] = 'CLAS.exo-TargetScoreboard'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:51_00040'
  currentMap['name'] = 'TargetScoreboard'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.TargetScoreboard
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to HolderCategory
  currentMap = {}
  exolinks['HolderCategory'] = currentMap
  loadMaps['CLAS.exo-HolderCategory'] = currentMap
  currentMap['tag'] = 'CLAS.exo-HolderCategory'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:52_00049'
  currentMap['name'] = 'HolderCategory'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.HolderCategory
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to HazardPhrase
  currentMap = {}
  exolinks['HazardPhrase'] = currentMap
  loadMaps['CLAS.exo-HazardPhrase'] = currentMap
  currentMap['tag'] = 'CLAS.exo-HazardPhrase'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:52_00052'
  currentMap['name'] = 'HazardPhrase'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.HazardPhrase
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to InstrumentType
  currentMap = {}
  exolinks['InstrumentType'] = currentMap
  loadMaps['CLAS.exo-InstrumentType'] = currentMap
  currentMap['tag'] = 'CLAS.exo-InstrumentType'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:46_00005'
  currentMap['name'] = 'InstrumentType'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.InstrumentType
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to SampleCategory
  currentMap = {}
  exolinks['SampleCategory'] = currentMap
  loadMaps['CLAS.exo-SampleCategory'] = currentMap
  currentMap['tag'] = 'CLAS.exo-SampleCategory'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:44_00009'
  currentMap['name'] = 'SampleCategory'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.SampleCategory
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))

  # Out-of-package link to TargetStatus
  currentMap = {}
  exolinks['TargetStatus'] = currentMap
  loadMaps['CLAS.exo-TargetStatus'] = currentMap
  currentMap['tag'] = 'CLAS.exo-TargetStatus'
  currentMap['type'] = 'exo'
  currentMap['guid'] = 'www.ccpn.ac.uk_Fogh_2006-08-16-14:22:51_00039'
  currentMap['name'] = 'TargetStatus'
  currentMap['eType'] = 'cplx'
  currentMap['class'] = ccp.api.lims.Classification.TargetStatus
  aList = list()
  currentMap['keyMaps'] = aList
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2008-06-30-16:30:50_00001'))
  aList.append(mapsByGuid.get('www.ccpn.ac.uk_Fogh_2006-08-16-14:22:53_00033'))
