/** * Loads the key when the component is wired to a map based reference. * * @param componentDefinition the component definition * @param reader a reader positioned on the element containing the key definition @return a Document containing the key value. */ private void loadKey(ComponentDefinition<Implementation<?>> componentDefinition, XMLStreamReader reader) { componentDefinition.setKey(loaderHelper.loadKey(reader)); }