public void contribute(ContributionContext context)
{
// Retrieve parser for HiveMind schema
ConfigurationPointDefinition cpd = context.getConfigurationPoint()
.getConfigurationPointDefinition();
ConfigurationParserDefinition parserDef = cpd.getParser(HiveMindSchemaParser.INPUT_FORMAT_NAME);
if (parserDef == null)
{
// This is a valid situation. The unparsed elements are contributed
context.mergeContribution(getElements());
} else {
// Construct and execute the parser
ConfigurationParser parser = parserDef.getParserConstructor().constructParser(context);
Object contribution = parser.parse(context, getElements());
context.mergeContribution(contribution);
}
}