Added ability to consume and produce mimes based on @As annotation