key = field.getName();
}
// Get the type of class/interface a resource has to implement to bind to the annotated field.
// If no API is set, get it from the annotated field type.
Class<? extends Resource> api = era.api();
// If no api is specified, look at the annotated field
if (api == Resource.class) {
if (Resource.class.isAssignableFrom(field.getType())
|| SharedResourceObject.class.isAssignableFrom(field.getType())) {
// If no API is set, check if the field type is already a resource type