if (!(object instanceof PropertyDetails))
{
throw new IllegalStateException(object.getClass() + " is not a " + PropertyDetails.class.getName());
}
PropertyDetails propertyDetails = (PropertyDetails)object;
Class entityClass = ProxyUtils.getUnproxiedClass(propertyDetails.getBaseObject().getClass());
return extractAnnotations(entityClass, propertyDetails);
}