List<MediaType> consumes = MediaTypeHelper.createConsumesList(c);
if (subPath == null)
{
// resource method
ResourceMethodDescriptor res =
new ResourceMethodDescriptorImpl(method, httpMethod.value(), params, this, consumes, produces,
new DefaultMethodInvoker());
ResourceMethodDescriptor exist =
findMethodResourceMediaType(resourceMethods.getList(httpMethod.value()), res.consumes(), res
.produces());
if (exist == null)
{
resourceMethods.add(httpMethod.value(), res);