private static ResourceType getResourceType(final Class<?> resourceClass)
{
RestLiCollection collAnno = resourceClass.getAnnotation(RestLiCollection.class);
RestLiAssociation assocAnno = resourceClass.getAnnotation(RestLiAssociation.class);
RestLiSimpleResource simpleResourceAnno = resourceClass.getAnnotation(RestLiSimpleResource.class);
if (resourceClass.isAnnotationPresent(RestLiActions.class))
{
throw new ResourceConfigException("Resource class '" + resourceClass.getName()
+ "' cannot have both @RestLiCollection and @RestLiActions annotations.");