public void apply(ICompletionReporter reporter) throws BadLocationException {
EntityCompletionContext context = (EntityCompletionContext) getContext();
SymfonyModelAccess model = SymfonyModelAccess.getDefault();
IScriptProject project = context.getSourceModule().getScriptProject();
SourceRange range = getReplacementRange(context);
IDLTKSearchScope projectScope = SearchEngine.createSearchScope(context.getSourceModule().getScriptProject());
DoctrineModelAccess doctrineModel = DoctrineModelAccess.getDefault();
IModelAccessCache cache = null;
if (context instanceof IModelCacheContext) {
cache = ((IModelCacheContext) context).getCache();