protected List<AnnotationMirror> getSupportedAnnotations(TransferObjectContext context) {
if (typeCopyAccessor == null) {
typeCopyAccessor = new CopyAccessor(context.getConfigurationTypeElement().asConfigurationElement(), processingEnv);
}
CopyAccessor methodCopyAccessor = new CopyAccessor(context.getDtoMethod(), processingEnv);
List<AnnotationMirror> supportedAnnotations = new ArrayList<AnnotationMirror>();
if (context.getDomainMethod() != null) {
add(supportedAnnotations, methodCopyAccessor.getSupportedAnnotations(context.getInstantiableDomainMethod()));
add(supportedAnnotations, methodCopyAccessor.getSupportedAnnotations(MethodHelper.getField(context.getDomainMethod())));
}
add(supportedAnnotations, methodCopyAccessor.getSupportedAnnotations(context.getDtoMethod()));
if (context.getDomainMethod() != null) {
add(supportedAnnotations, typeCopyAccessor.getSupportedAnnotations(context.getInstantiableDomainMethod()));
add(supportedAnnotations, typeCopyAccessor.getSupportedAnnotations(MethodHelper.getField(context.getDomainMethod())));
}
add(supportedAnnotations, typeCopyAccessor.getSupportedAnnotations(context.getDtoMethod()));
return supportedAnnotations;
}