question: register a custom index meta data factory . make sure to call it from a static block . concode_field_sep List<AllocationCommand> commands concode_elem_sep Map<String,AllocationCommand.Factory> factories concode_field_sep AllocationCommands add concode_elem_sep void writeTo concode_elem_sep AllocationCommands readFrom concode_elem_sep void toXContent concode_elem_sep AllocationCommand.Factory<T> lookupFactory concode_elem_sep AllocationCommands fromXContent concode_elem_sep AllocationCommand.Factory<T> lookupFactorySafe concode_elem_sep RoutingExplanations execute concode_elem_sep List<AllocationCommand> commands
target: void function ( String arg0 , AllocationCommand . Factory arg1 ) { factories . put ( arg0 , arg1 ) ; }