protected String processMethodBody(String body) {
Set<? extends Element> configurations = getClassPathTypes().getElementsAnnotatedWith(TransferObjectMapping.class, roundEnv);
for (Element configuration: configurations) {
if (configuration.getAnnotation(Generated.class) == null && (configuration.getKind().isClass() || configuration.getKind().isInterface())) {
ConfigurationContext configurationContext = new ConfigurationContext(processingEnv.getEnvironmentContext().getConfigurationEnv());
ConfigurationTypeElement configurationTypeElement = new ConfigurationTypeElement(configuration, processingEnv.getEnvironmentContext(), configurationContext);
configurationContext.addConfiguration(configurationTypeElement);
String domainElementName = configurationTypeElement.getInstantiableDomainSpecified() == null ? null :
configurationTypeElement.getInstantiableDomainSpecified().getSimpleName().toString();
if (domainElementName != null) {
body = replaceDomainType(domainElementName, configurationTypeElement.getDto(), body);
}
domainElementName = configurationTypeElement.getDomain().getSimpleName();
body = replaceDomainType(domainElementName, configurationTypeElement.getDto(), body);
}
}
return body;
}