public static <E> JsonMapper<E> mapperFor(Class<E> cls) throws NoSuchMapperException {
        JsonMapper<E> mapper = getMapper(cls);

        if (mapper == null) {
            throw new NoSuchMapperException(cls);
        } else {
            return mapper;
        }
    }
public static < E > JsonMapper < E > mapperFor ( Class < E > cls ) throws NoSuchMapperException { JsonMapper < E > mapper = getMapper ( cls ) ; if ( mapper == null ) { throw new NoSuchMapperException ( cls ) ; } else { return mapper ; } }
Returns a JsonMapper for a given class that has been annotated with @JsonObject.

@param cls The class for which the JsonMapper should be fetched.