Buggy code:
public class SharedObjectContainerFactory { private static Trace debug = Trace . create ( "containerfactory" ) ; private static Hashtable containerdescriptions = new Hashtable ( ) ; public static final SharedObjectContainerDescription addDescription ( SharedObjectContainerDescription scd ) { } public static final List getDescriptions ( ) { } private static void debug ( String msg ) { } private static void dumpStack ( String msg , Throwable e ) { } protected static List getDescriptions0 ( ) { } protected static SharedObjectContainerDescription addDescription0 ( SharedObjectContainerDescription n ) { } public static final boolean containsDescription ( SharedObjectContainerDescription scd ) { } protected static boolean containsDescription0 ( SharedObjectContainerDescription scd ) { } protected static SharedObjectContainerDescription getDescription0 ( SharedObjectContainerDescription scd ) { } protected static SharedObjectContainerDescription getDescription0 ( String name ) { } public static final SharedObjectContainerDescription getDescriptionByName ( String name ) throws SharedObjectContainerInstantiationException { } public static ISharedObjectContainer makeSharedObjectContainer ( SharedObjectContainerDescription desc , String [ ] argTypes , Object [ ] args ) throws SharedObjectContainerInstantiationException { SharedObjectContainerFactory . debug ( ( ( ( ( ( ( "makeSharedObjectContainer(" + desc ) + "," ) + ( Trace . convertStringAToString ( argTypes ) ) ) + "," ) + ( Trace . convertObjectAToString ( args ) ) ) + ")" ) ) ; if ( desc == null ) throw new SharedObjectContainerInstantiationException ( "SharedObjectContainerDescription<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; SharedObjectContainerDescription cd = SharedObjectContainerFactory . getDescription0 ( desc ) ; if ( cd == null ) throw new SharedObjectContainerInstantiationException ( ( ( "SharedObjectContainerDescription<seq2seq4repair_space>named<seq2seq4repair_space>'" + ( desc . getName ( ) ) ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ) ; Class [ ] clazzes = null ; ISharedObjectContainerInstantiator instantiator = null ; try { instantiator = ( ( ISharedObjectContainerInstantiator ) ( cd . getInstantiator ( ) ) ) ; clazzes = AbstractFactory . getClassesForTypes ( argTypes , args , cd . getClassLoader ( ) ) ; } catch ( Exception e ) { throw new SharedObjectContainerInstantiationException ( "Exception<seq2seq4repair_space>getting<seq2seq4repair_space>ISharedObjectContainerInstantiatior" , e ) ; } if ( instantiator == null ) throw new SharedObjectContainerInstantiationException ( ( ( "Instantiator<seq2seq4repair_space>for<seq2seq4repair_space>SharedObjectContainerDescription<seq2seq4repair_space>" + ( cd . getName ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ) ; <START_BUG> return ( ( ISharedObjectContainer ) ( instantiator . makeInstance ( clazzes , args ) ) ) ; <END_BUG> } public static ISharedObjectContainer makeSharedObjectContainer ( String descriptionName ) throws SharedObjectContainerInstantiationException { } public static ISharedObjectContainer makeSharedObjectContainer ( String descriptionName , Object [ ] args ) throws SharedObjectContainerInstantiationException { } public static ISharedObjectContainer makeSharedObjectContainer ( String descriptionName , String [ ] argsTypes , Object [ ] args ) throws SharedObjectContainerInstantiationException { } public static final SharedObjectContainerDescription removeDescription ( SharedObjectContainerDescription scd ) { } protected static SharedObjectContainerDescription removeDescription0 ( SharedObjectContainerDescription n ) { } private SharedObjectContainerFactory ( ) { } }

Fix:
return ( ( ISharedObjectContainer ) ( instantiator . makeInstance ( desc , clazzes , args ) ) ) ;