for (RelationDeclaration relation : getComponent().getRelations()) {
for (RequirerInstrumentation instrumentation : relation.getInstrumentations()) {
if (instrumentation instanceof InjectedField) {
InjectedField injectedField = (InjectedField) instrumentation;
if (injectedFields.containsKey(injectedField)) {
error("invalid relation injection " + relation.getIdentifier() + ", field "+quoted(injectedField.getName())+" is already injected in relation "+quoted(injectedFields.get(injectedField).getIdentifier()));
}
injectedFields.put(injectedField,relation);
}