resourceClass.isAnnotationPresent(RestLiAssociation.class)))
{
// If any of these annotations, a subclass of KeyValueResource is expected
if (!KeyValueResource.class.isAssignableFrom(resourceClass))
{
throw new RestLiInternalException("Resource class '" + resourceClass.getName()
+ "' declares RestLi annotation but does not implement "
+ KeyValueResource.class.getName() + " interface.");
}
@SuppressWarnings("unchecked")