private Translator < ? , ? > create ( final TypeKey tk , final CreateContext ctx , final Path path ) { for ( final TranslatorFactory < ? , ? > trans : this . translatorFactories ) { @ SuppressWarnings ( "unchecked" ) final Translator < ? , ? > soFar = trans . create ( tk , ctx , path ) ; if ( soFar != null ) return soFar ; } throw new IllegalArgumentException ( "Don't know how to translate " + tk . getType ( ) + " with annotations " + Arrays . toString ( tk . getAnnotations ( ) ) ) ; }
Create a translator from scratch by going through the discovery process .