package Ġcom . nim bus framework . nim bus aws local . deployment . services . resource Ċ Ċ import Ġcom . nim bus framework . nim bus aws . annotation . annotations . document . D ynamo Db Document Store Ċ import Ġcom . nim bus framework . nim bus aws . clients . document . D ynamo Db Document Store Annotation Service Ċ import Ġcom . nim bus framework . nim bus core . clients . document . Document Store Annotation Service Ċ import Ġcom . nim bus framework . nim bus local . deployment . document . Local Document Store Ċ import Ġcom . nim bus framework . nim bus local . deployment . services . Local Resource Holder Ċ import Ġcom . nim bus framework . nim bus local . deployment . services . resource . Local Create Resources Handler Ċ Ċ class ĠLocal D ynamo Db Document Store Creator ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlocal Resource Holder : ĠLocal Resource Holder , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġstage : ĠString Ċ ): ĠLocal Create Resources Handler Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Resource ( clazz : ĠClass < out ĠAny >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdocument Store Annotations Ġ= Ġclazz . get Annotations ByType ( D ynamo Db Document Store :: class . java ) ĊĊĠĠĠĠĠĠĠ Ġfor Ġ( document Store Annotation Ġin Ġdocument Store Annotations ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( document Store Annotation . stages . contains ( stage )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval ĠtableName Ġ= ĠD ynamo Db Document Store Annotation Service . get TableName ( clazz , Ġstage ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlocal Resource Holder . document Stores [ clazz ] Ġ= ĠLocal Document Store ( clazz , ĠtableName , Ġstage ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlocal Resource Holder . web Document Stores [ tableName ] Ġ= ĠLocal Document Store ( clazz , ĠtableName , Ġstage ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }