final boolean implicitViewables = resourceConfig.getFeature(
ResourceConfig.FEATURE_IMPLICIT_VIEWABLES);
List<QualitySourceMediaType> implictProduces = null;
if (implicitViewables) {
ImplicitProduces ip = resource.getAnnotation(ImplicitProduces.class);
if (ip != null && ip.value() != null && ip.value().length > 0) {
implictProduces = MediaTypes.createQualitySourceMediaTypes(ip.value());
}
}
RulesMap<UriRule> rulesMap = new RulesMap<UriRule>();