#fixed code
                             @Override
	public <T> T get(Class<? extends T> clazz, String name) throws EntityNotFoundException
	{
		// The cast gets rid of "no unique maximal instance exists" compiler error
		return (T)this.get(new OKey<T>(clazz, name));
	}
#vulnerable code 
                             @Override
	public <T> T get(Class<? extends T> clazz, String name) throws EntityNotFoundException
	{
		// The cast gets rid of "no unique maximal instance exists" compiler error
		return (T)this.get(this.factory.createKey(clazz, name));
	} 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE