public static String getTaskId ( final Configuration config ) { try { return Tang . Factory . getTang ( ) . newInjector ( config ) . getNamedInstance ( TaskConfigurationOptions . Identifier . class ) ; } catch ( final InjectionException ex ) { throw new RuntimeException ( "Unable to determine task identifier. Giving up." , ex ) ; } }
Extracts a task id from the given configuration .