ConverterFactory converterFactory)
{
UISelection<FileResource<?>> selection = context.getInitialSelection();
final File cwd = selection.isEmpty() ? OperatingSystemUtils.getUserHomeDir() : selection.get()
.getUnderlyingResourceObject();
InputType inputType = component.getFacet(HintsFacet.class).getInputType();
OptionCompleter strategy = null;
if (inputType == InputType.FILE_PICKER && cwd.isDirectory())
{
strategy = new FileOptionCompleter(cwd);
}