@SuppressWarnings("unchecked")
public String resolveURI(Object object)
{
Class<? extends Object> clazz = AnnotationResolver
.getClassWithAnnotation(object.getClass(), getAnnotationType());
UriBuilderImpl uriBuilderImpl = getUriBuilder(clazz);
Map<String, PropertyDescriptor> descriptors = getPropertyDescriptors(clazz);
List<Object> values = getValues(object, descriptors, uriBuilderImpl
.getPathParamNamesInDeclarationOrder());
return uriBuilderImpl.build(values.toArray()).toString();
}