Buggy code:
public class ComponentManager implements ComponentService { private Map converters = new HashMap ( ) ; private Set loadedConverters = new HashSet ( ) ; private Map libFactories = new HashMap ( ) ; private Frame frame ; private AntLibManager libManager ; private Map antLibraries ; private Map dynamicLibraries ; private Map definitions = new HashMap ( ) ; private Map libPathsMap ; private Map setters = new HashMap ( ) ; protected ComponentManager ( Frame frame , boolean allowRemoteLibs , Map configLibPaths ) { } public void loadLib ( String libLocation , boolean importAll ) throws ExecutionException { } public void taskdef ( AntLibFactory factory , ClassLoader loader , String taskName , String className ) throws ExecutionException { } public void typedef ( AntLibFactory factory , ClassLoader loader , String typeName , String className ) throws ExecutionException { } public void addLibPath ( String libraryId , URL libPath ) throws ExecutionException { } public void importLibrary ( String libraryId ) throws ExecutionException { } public void importComponent ( String libraryId , String defName , String alias ) throws ExecutionException { } public void importFrameComponent ( String relativeName , String alias ) throws ExecutionException { } public Object createComponent ( String componentName ) throws ExecutionException { } protected void setStandardLibraries ( Map standardLibs ) throws ExecutionException { } protected Map getConverters ( ) { } protected AntLibFactory getLibFactory ( ComponentLibrary componentLibrary ) throws ExecutionException { } protected ImportInfo getDefinition ( String name ) { } protected Object createComponent ( BuildElement model ) throws ExecutionException { } protected Object createComponent ( String componentName , BuildElement model ) throws ExecutionException { } protected void importLibraryDef ( ComponentLibrary library , String defName , String alias ) { } private Setter getSetter ( Class c ) { } private Object createTypeInstance ( Class typeClass , AntLibFactory libFactory , BuildElement model , String localName ) throws ExecutionException { } private void addNestedElement ( AntLibFactory factory , Setter setter , Object element , BuildElement model ) throws ExecutionException { } private void createNestedElement ( AntLibFactory factory , Setter setter , Object element , BuildElement model ) throws ExecutionException { } private void configureElement ( AntLibFactory factory , Object element , BuildElement model ) throws ExecutionException { Setter setter = getSetter ( element . getClass ( ) ) ; for ( Iterator i = model . getAttributeNames ( ) ; i . hasNext ( ) ; ) { String attributeName = ( ( String ) ( i . next ( ) ) ) ; String attributeValue = model . getAttributeValue ( attributeName ) ; if ( ! ( setter . supportsAttribute ( attributeName ) ) ) { throw new ExecutionException ( ( ( ( ( model . getType ( ) ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>the<seq2seq4repair_space>\"" ) + attributeName ) + "\"<seq2seq4repair_space>attribute" ) , model . getLocation ( ) ) ; } setter . setAttribute ( element , attributeName , frame . replacePropertyRefs ( attributeValue ) ) ; } String modelText = model . getText ( ) . trim ( ) ; if ( ( modelText . length ( ) ) != 0 ) { if ( ! ( setter . supportsText ( ) ) ) { throw new ExecutionException ( ( ( model . getType ( ) ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>content" ) , model . getLocation ( ) ) ; } setter . addText ( element , frame . replacePropertyRefs ( modelText ) ) ; } for ( Iterator i = model . getNestedElements ( ) ; i . hasNext ( ) ; ) { BuildElement nestedElementModel = ( ( BuildElement ) ( i . next ( ) ) ) ; String nestedElementName = nestedElementModel . getType ( ) ; ImportInfo info = getDefinition ( nestedElementName ) ; if ( ( ( ( element instanceof TaskContainer ) && ( info != null ) ) && ( ( info . getDefinitionType ( ) ) == ( AntLibrary . TASKDEF ) ) ) && ( ! ( setter . supportsNestedElement ( nestedElementName ) ) ) ) { Task nestedTask = ( ( Task ) ( createComponent ( nestedElementModel ) ) ) ; TaskContainer container = ( ( TaskContainer ) ( element ) ) ; <START_BUG> container . addTask ( nestedTask ) ; <END_BUG> } else { if ( setter . supportsNestedAdder ( nestedElementName ) ) { addNestedElement ( factory , setter , element , nestedElementModel ) ; } else if ( setter . supportsNestedCreator ( nestedElementName ) ) { createNestedElement ( factory , setter , element , nestedElementModel ) ; } else { throw new ExecutionException ( ( ( ( ( model . getType ( ) ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>the<seq2seq4repair_space>\"" ) + nestedElementName ) + "\"<seq2seq4repair_space>nested<seq2seq4repair_space>element" ) , nestedElementModel . getLocation ( ) ) ; } } } } private void defineComponent ( AntLibFactory factory , ClassLoader loader , int defType , String componentName , String className ) throws ExecutionException { } private void addLibraryConverters ( AntLibrary library ) throws ExecutionException { } }

Fix:
container . addNestedTask ( nestedTask ) ;