* Returns a {@link EncodableFacet} implementation.
*/
private EncodableFacet create(final Class<?> cls, final FacetHolder holder) {
// create from annotation, if present
final Encodable annotation = getAnnotation(cls, Encodable.class);
if (annotation != null) {
final EncodableFacetAnnotation facet =
new EncodableFacetAnnotation(cls, getIsisConfiguration(), holder, adapterManager, dependencyInjector);
if (facet.isValid()) {
return facet;